{"id":268134,"date":"2015-11-13T11:00:02","date_gmt":"2015-11-13T08:00:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=268134"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=268134","title":{"rendered":"\u0418\u043c\u043f\u0435\u0440\u0438\u044f \u043d\u0430\u043d\u043e\u0441\u0438\u0442 \u043e\u0442\u0432\u0435\u0442\u043d\u044b\u0439 \u0443\u0434\u0430\u0440"},"content":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/c7e\/580\/055\/c7e58005517ebed59b94d43da7289872.png\" alt=\"\u0414\u0430\u0440\u0442 \u0412\u0435\u0439\u0434\u0435\u0440 - \u0415\u0434\u0438\u043d\u043e\u0440\u043e\u0433\" align=\"left\"\/><br \/>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0441\u0442\u0430\u0442\u044c\u044f \u00abHackathon 2: Time lapse analysis of Unreal Engine 4\u00bb, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043a\u0430\u043a \u0432\u0437\u044f\u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 Klocwork, \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043e\u0448\u0438\u0431\u043e\u043a \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 Unreal Engine 4. \u042f \u043d\u0435 \u043c\u043e\u0433\u0443 \u043f\u0440\u043e\u0439\u0442\u0438 \u043c\u0438\u043c\u043e \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438. \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 \u0441\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043c\u044b \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0438 \u0432\u0441\u0435 \u043e\u0448\u0438\u0431\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0448\u0435\u043b \u0432 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 PVS-Studio. \u041f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0431\u044b\u043b\u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u0441\u0435 \u043e\u0448\u0438\u0431\u043a\u0438, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u043c. \u041e\u0434\u043d\u0430\u043a\u043e \u0441\u0442\u0430\u0442\u044c\u044f \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 PVS-Studio \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u043b \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e. \u0427\u0442\u043e \u0436, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0439 \u0445\u043e\u0434. \u042f \u0442\u043e\u0436\u0435 \u0437\u0430\u043d\u043e\u0432\u043e \u043f\u0435\u0440\u0435\u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b Unreal Engine 4 \u0438 \u043d\u0430\u0448\u0435\u043b \u043c\u0430\u0441\u0441\u0443 \u043e\u0448\u0438\u0431\u043e\u043a. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u044f \u043c\u043e\u0433\u0443 \u0437\u0430\u044f\u0432\u0438\u0442\u044c, \u0447\u0442\u043e PVS-Studio \u0442\u043e\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0439\u0442\u0438 \u0441\u0435\u0439\u0447\u0430\u0441 \u0432 Unreal Engine 4 \u043d\u043e\u0432\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438. \u041d\u0438\u0447\u044c\u044f.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u043f\u0440\u0430\u0432\u043a\u0430<\/h2>\n<p>  \u0412\u0441\u0451 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u043b\u0442\u043e\u0440\u0430 \u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434, \u043a\u043e\u0433\u0434\u0430 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u044e &quot;<a href=\"http:\/\/www.viva64.com\/ru\/b\/0249\/\">\u0414\u043e\u043b\u0433\u043e\u0436\u0434\u0430\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 Unreal Engine 4<\/a>&quot;. \u0414\u0430\u043b\u0435\u0435 \u0431\u044b\u043b\u043e \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0435\u0439 Epic Games, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u0442\u0430\u043b\u043e \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u0434\u0430\u0432\u0430\u043b PVS-Studio. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0431\u044b\u043b\u043e \u043f\u043e\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u044b \u0432\u0441\u0435 \u043b\u043e\u0436\u043d\u044b\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430. \u041d\u0430\u0448\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u044b\u0434\u0430\u043b\u0430 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Epic Games \u043f\u0440\u043e\u0435\u043a\u0442, \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0439 \u043e\u0442 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 PVS-Studio. \u041a\u0430\u043a \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b\u043e, \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 &quot;<a href=\"http:\/\/www.viva64.com\/ru\/b\/0330\/\">\u041a\u0430\u043a \u043a\u043e\u043c\u0430\u043d\u0434\u0430 PVS-Studio \u0443\u043b\u0443\u0447\u0448\u0438\u043b\u0430 \u043a\u043e\u0434 Unreal Engine<\/a>&quot;.<\/p>\n<p>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u044f \u043d\u0430\u0442\u043a\u043d\u0443\u043b\u0441\u044f \u043d\u0430 \u0441\u0442\u0430\u0442\u044c\u044e &quot;<a href=\"http:\/\/blog.klocwork.com\/static-analysis\/analysis-of-unreal-engine-4\/\">Hackathon 2: Time lapse analysis of Unreal Engine 4<\/a>&quot;. \u0421\u0442\u0430\u0442\u044c\u044f \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u0430\u044f. \u041a\u043e\u043c\u043f\u0430\u043d\u0438\u044f Rogue Wave \u043c\u043e\u043b\u043e\u0434\u0435\u0446, \u0447\u0442\u043e \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442 \u0442\u0430\u043a\u0438\u0435 \u043c\u0435\u0440\u043e\u043f\u0440\u0438\u044f\u0442\u0438\u044f \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u043c\u043e\u0449\u043d\u044b\u0439 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043a\u043e\u0434\u0430 Klocwork. Michail Greshishchev \u0442\u043e\u0436\u0435 \u043c\u043e\u043b\u043e\u0434\u0435\u0446, \u0447\u0442\u043e \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043b \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 Unreal Engine \u0438 \u043d\u0430\u0448\u0451\u043b \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e \u044d\u0442\u043e \u0441\u0442\u0430\u0442\u044c\u044e. \u0412\u0441\u0451 \u0445\u043e\u0440\u043e\u0448\u043e. \u041d\u043e \u044f \u043e\u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0435\u043d, \u0447\u0442\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a, \u043c\u0430\u043b\u043e \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0439 \u0441\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u043c\u0438, \u043c\u043e\u0436\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 \u0432\u044b\u0432\u043e\u0434\u044b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043e\u0431\u044f\u0437\u0430\u043d \u043f\u0440\u043e\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e.<\/p>\n<p>  \u041d\u0435\u043f\u0440\u0435\u0434\u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e, \u043d\u043e \u043d\u0435\u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u043e\u043c\u0443 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044e \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430\u0441 \u0432 \u043d\u0435\u0432\u044b\u0433\u043e\u0434\u043d\u043e\u043c \u0441\u0432\u0435\u0442\u0435 \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e Klocwork. \u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e PVS-Studio \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 \u043e\u0448\u0438\u0431\u043e\u043a, \u0447\u0435\u043c Klocwork. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043c\u0438\u0440 \u0443\u0441\u0442\u0440\u043e\u0435\u043d \u0441\u043b\u043e\u0436\u043d\u0435\u0435. \u041e\u0431\u0430 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0438\u043c\u0435\u044e\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a. \u0427\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u044d\u0442\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u044e\u0442\u0441\u044f. \u041e\u0434\u043d\u0430\u043a\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432 \u0438\u043c\u0435\u0435\u0442 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0432 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043e\u0434\u043d\u0438\u043c \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u043c, \u0432\u044b \u043f\u043e\u0442\u043e\u043c \u0432\u0441\u0435\u0433\u0434\u0430 \u0447\u0442\u043e-\u0442\u043e \u043d\u0430\u0439\u0434\u0451\u0442\u0435 \u0434\u0440\u0443\u0433\u0438\u043c \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u043c. <\/p>\n<p>  \u0415\u0449\u0451 \u043e\u0434\u0438\u043d \u043d\u044e\u0430\u043d\u0441. \u041c\u044b \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 (\u043a\u0430\u0442\u0430\u043b\u043e\u0433 ThirdParty), \u0430 Michail Greshishchev \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b (\u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e), \u043e \u0447\u0435\u043c \u0441\u0432\u0438\u0434\u0435\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0434\u0438\u043d \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u043a\u043e\u0434\u0430 (\u0441\u043c. \u0444\u0443\u043d\u043a\u0446\u0438\u044e HeadMountedDisplayCommon). \u0412 ThirdParty \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 PVS-Studio \u043c\u043e\u0436\u0435\u0442 \u0442\u0430\u043a\u0436\u0435 \u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0439\u0442\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u0434\u0435\u0444\u0435\u043a\u0442\u043e\u0432. \u0422\u0435\u043c \u0431\u043e\u043b\u0435\u0435, \u0447\u0442\u043e \u0440\u0430\u0437\u043c\u0435\u0440 ThirdParty-\u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432 \u0432 3 \u0440\u0430\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u0430\u043c\u043e\u0433\u043e UE4.<\/p>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e \u0432\u0441\u0451 \u044d\u0442\u043e \u0437\u0432\u0443\u0447\u0438\u0442 \u043a\u0430\u043a \u0436\u0430\u043b\u043a\u0438\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043e\u043f\u0440\u0430\u0432\u0434\u0430\u0442\u044c\u0441\u044f :). \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043d\u0435 \u043d\u0435 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043d\u0438\u0447\u0435\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e, \u043a\u0430\u043a \u0441\u0440\u0430\u0432\u043d\u044f\u0442\u044c \u0441\u0447\u0451\u0442. \u0421 \u044d\u0442\u043e\u0439 \u0446\u0435\u043b\u044c\u044e \u0431\u044b\u043b\u0438 \u0432\u0437\u044f\u0442\u044b \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 Unreal Engine 4 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 PVS-Studio.<\/p>\n<p>  \u0418 \u0441\u0435\u0439\u0447\u0430\u0441 \u044f \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044e, \u0447\u0442\u043e \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0439\u0442\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u0431\u043e\u043b\u044c\u0448\u043e\u043c \u0431\u044b\u0441\u0442\u0440\u043e \u043c\u0435\u043d\u044f\u044e\u0449\u0435\u043c\u0441\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0435.<\/p>\n<h2>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e PVS-Studio<\/h2>\n<p>  \u042f \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u043a\u043e\u0434\u044b UE4 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 PVS-Studio. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0438\u0441\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u043a\u043e\u0434\u044b UE4 \u0431\u0435\u0437 \u0443\u0447\u0435\u0442\u0430 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 ThirdParty. \u0415\u0441\u043b\u0438 \u044f \u0438\u0445 \u043f\u0440\u043e\u0432\u0435\u0440\u044e, \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043d\u0435 \u0441\u0442\u0430\u0442\u044c\u044f, \u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a :).<\/p>\n<p>  \u042f \u043f\u043e\u043b\u0443\u0447\u0438\u043b 1792 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u043e\u0431\u0449\u0435\u0433\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0438 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f. \u041d\u0435 \u043d\u0430\u0434\u043e \u043f\u0443\u0433\u0430\u0442\u044c\u0441\u044f. \u0421\u0435\u0439\u0447\u0430\u0441 \u0441\u0442\u0430\u043d\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043e\u0442\u043a\u0443\u0434\u0430 \u0432\u0437\u044f\u043b\u043e\u0441\u044c \u044d\u0442\u043e \u0447\u0438\u0441\u043b\u043e.<\/p>\n<p>  \u0411\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 (93%) \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u043d\u043e\u0432\u044b\u043c \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e\u043c V730, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u043c \u0434\u043b\u044f \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0435\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0447\u043b\u0435\u043d\u043e\u0432 \u043a\u043b\u0430\u0441\u0441\u0430. \u041d\u0435\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0447\u043b\u0435\u043d \u043a\u043b\u0430\u0441\u0441\u0430 \u2014 \u044d\u0442\u043e \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u0448\u0438\u0431\u043a\u0430, \u043d\u043e \u0442\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u044d\u0442\u043e \u0442\u043e \u043c\u0435\u0441\u0442\u043e \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u0442\u043e\u0438\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c. \u0412\u043e\u043e\u0431\u0449\u0435 1672 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 V730 \u044d\u0442\u043e \u043c\u043d\u043e\u0433\u043e. \u041d\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u044f \u043d\u0435 \u0432\u0438\u0434\u0435\u043b \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u044d\u0442\u0438\u0445 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439. \u0422\u0435\u043c \u0431\u043e\u043b\u0435\u0435, \u0447\u0442\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043f\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u0434\u0443\u0433\u0430\u0434\u0430\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0447\u043b\u0435\u043d \u2014 \u044d\u0442\u043e \u043d\u0435 \u0441\u0442\u0440\u0430\u0448\u043d\u043e. \u041a\u0441\u0442\u0430\u0442\u0438, \u043f\u043e\u0438\u0441\u043a \u043d\u0435\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0447\u043b\u0435\u043d\u043e\u0432 \u2014 \u043d\u0435\u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430, \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441\u043e \u0441\u0442\u0430\u0442\u044c\u0451\u0439 &quot;<a href=\"http:\/\/www.viva64.com\/ru\/b\/0354\/\">\u041f\u043e\u0438\u0441\u043a \u043d\u0435\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0447\u043b\u0435\u043d\u043e\u0432 \u043a\u043b\u0430\u0441\u0441\u0430<\/a>&quot;.<\/p>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e \u0432\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u043a \u043f\u0440\u043e\u0435\u043a\u0442\u0443 UE4. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043d\u0435 \u0431\u0443\u0434\u0443 \u043a\u0430\u0441\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f <a href=\"http:\/\/www.viva64.com\/ru\/d\/0377\/\">V730<\/a>. \u0418\u0445 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e, \u0438 \u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043f\u043b\u043e\u0445\u043e \u0437\u043d\u0430\u044e \u043f\u0440\u043e\u0435\u043a\u0442 UE4, \u0447\u0442\u043e\u0431\u044b \u0441\u0443\u0434\u0438\u0442\u044c, \u043c\u043e\u0436\u0435\u0442-\u043b\u0438 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0442\u0430 \u0438\u043b\u0438 \u0438\u043d\u0430\u044f \u043d\u0435\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043a \u043e\u0448\u0438\u0431\u043a\u0435 \u0432 \u0440\u0430\u0431\u043e\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b. \u041e\u0434\u043d\u0430\u043a\u043e \u044f \u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e \u0441\u0440\u0435\u0434\u0438 \u044d\u0442\u0438\u0445 1672 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u043c\u0430\u043b\u043e \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0445 \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a. \u0414\u0443\u043c\u0430\u044e, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0438\u0437 Epic Games \u0441\u0442\u043e\u0438\u0442 \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445. \u0415\u0441\u043b\u0438 \u0436\u0435 \u043e\u043d\u0438 \u0441\u043e\u0447\u0442\u0443\u0442, \u0447\u0442\u043e \u044d\u0442\u043e \u0441\u043f\u043b\u043e\u0448\u043d\u044b\u0435 \u043b\u043e\u0436\u043d\u044b\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f, \u0442\u043e \u0442\u043e\u0433\u0434\u0430 \u044d\u0442\u0443 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c.<\/p>\n<p>  \u0418\u0442\u0430\u043a, 1792 \u2014 1672 = 120. \u0418\u0442\u043e\u0433\u043e PVS-Studio \u0432\u044b\u0434\u0430\u043b 120 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 \u043e\u0431\u0449\u0435\u0433\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (1 \u0438 2 \u0443\u0440\u043e\u0432\u0435\u043d\u044c) \u043f\u0440\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 Unreal Engine. \u041c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0438\u0437 \u044d\u0442\u0438\u0445 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 \u0432\u044b\u044f\u0432\u0438\u043b\u0438 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u043a\u043e\u0434\u0430 \u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0438\u043c \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f.<\/p>\n<h2>\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438, \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e PVS-Studio<\/h2>\n<p>  \u0415\u0449\u0451 \u0440\u0430\u0437 \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u043d\u0443, \u0447\u0442\u043e \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0432\u0441\u0435 \u0443\u0447\u0430\u0441\u0442\u043a\u0438 \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u044e\u0442 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u0438 \u043f\u0440\u0430\u0432\u043a\u0438. \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u044f \u0441\u043c\u043e\u0442\u0440\u0435\u043b \u043e\u0442\u0447\u0435\u0442 \u0431\u0435\u0433\u043b\u043e \u0438 \u043c\u043e\u0433 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435. \u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u044f \u043d\u0435 \u0432\u044b\u043f\u0438\u0441\u044b\u0432\u0430\u043b \u043d\u0435\u0441\u0435\u0440\u044c\u0435\u0437\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0438\u043b\u0438 \u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043b\u043e\u0436\u043d\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c (\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043c\u043d\u043e\u0433\u043e \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432 \u043a\u043e\u0434\u0430).<\/p>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 N1<\/b>  <\/p>\n<pre><code class=\"cpp\">FORCEINLINE bool operator==(const FShapedGlyphEntryKey&amp; Other) const {   return FontFace == Other.FontFace      &amp;&amp; GlyphIndex == Other.GlyphIndex     &amp;&amp; FontSize == Other.FontSize     &amp;&amp; FontScale == Other.FontScale     &amp;&amp; GlyphIndex == Other.GlyphIndex; }<\/code><\/pre>\n<p>  \u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: V501 There are identical sub-expressions &#8216;GlyphIndex == Other.GlyphIndex&#8217; to the left and to the right of the &#8216;&amp;&amp;&#8217; operator. fontcache.h 139<\/p>\n<p>  \u0414\u0432\u0430 \u0440\u0430\u0437\u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u00abGlyphIndex == Other.GlyphIndex\u00bb. <a href=\"http:\/\/www.viva64.com\/ru\/b\/0260\/\">\u042d\u0444\u0444\u0435\u043a\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0438<\/a> \u0432 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0438. \u041f\u043e \u0432\u0441\u0435\u0439 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435\u043c \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c: KeyHash == Other.KeyHash.<\/p>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 N2<\/b><\/p>\n<p>  \u0415\u0449\u0451 \u043e\u0434\u0438\u043d \u044d\u0444\u0444\u0435\u043a\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0438. \u041f\u0440\u044f\u043c\u043e-\u0442\u0430\u043a\u0438 \u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439.  <\/p>\n<pre><code class=\"cpp\">bool Compare(const FPooledRenderTargetDesc&amp; rhs, bool bExact) const {   ....   return Extent == rhs.Extent     &amp;&amp; Depth == rhs.Depth     &amp;&amp; bIsArray == rhs.bIsArray     &amp;&amp; ArraySize == rhs.ArraySize     &amp;&amp; NumMips == rhs.NumMips     &amp;&amp; NumSamples == rhs.NumSamples     &amp;&amp; Format == rhs.Format     &amp;&amp; LhsFlags == RhsFlags     &amp;&amp; TargetableFlags == rhs.TargetableFlags     &amp;&amp; bForceSeparateTargetAndShaderResource ==          rhs.bForceSeparateTargetAndShaderResource     &amp;&amp; ClearValue == rhs.ClearValue     &amp;&amp; AutoWritable == AutoWritable; }<\/code><\/pre>\n<p>  \u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: V501 There are identical sub-expressions to the left and to the right of the &#8216;==&#8217; operator: AutoWritable == AutoWritable rendererinterface.h 180<\/p>\n<p>  \u0412 \u0441\u0430\u043c\u043e\u043c \u043a\u043e\u043d\u0446\u0435 \u0437\u0430\u0431\u044b\u043b\u0438 \u0434\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u00abrhs.\u00bb \u0438 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f &#8216;AutoWritable&#8217; \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u0430 \u0441 \u0441\u043e\u0431\u043e\u0439.<\/p>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 N3<\/b>  <\/p>\n<pre><code class=\"cpp\">void AEQSTestingPawn::PostLoad()  {   ....   UWorld* World = GetWorld();   if (World &amp;&amp; World-&gt;IsGameWorld() &amp;&amp;       bTickDuringGame == bTickDuringGame)   {     PrimaryActorTick.bCanEverTick = false;   } }<\/code><\/pre>\n<p>  \u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: V501 There are identical sub-expressions to the left and to the right of the &#8216;==&#8217; operator: bTickDuringGame == bTickDuringGame eqstestingpawn.cpp 157<\/p>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 N4<\/b>  <\/p>\n<pre><code class=\"cpp\">int32 SRetainerWidget::OnPaint(....) const {   ....   if ( RenderTargetResource-&gt;GetWidth() != 0 &amp;&amp;        RenderTargetResource-&gt;GetWidth() != 0 )   .... }<\/code><\/pre>\n<p>  \u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: V501 There are identical sub-expressions &#8216;RenderTargetResource-&gt;GetWidth() != 0&#8217; to the left and to the right of the &#8216;&amp;&amp;&#8217; operator. sretainerwidget.cpp 291<\/p>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 N5, N6<\/b><\/p>\n<p>  \u0414\u0432\u0435 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u043e\u0448\u0438\u0431\u043a\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0438\u043b\u0438\u0441\u044c \u043f\u043e \u0441\u043e\u0441\u0435\u0434\u0441\u0442\u0432\u0443. \u041c\u0430\u043a\u0440\u043e\u0441\u044b ZeroMemory, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0435\u0441\u0442\u044c \u043d\u0435 \u0447\u0442\u043e \u0438\u043d\u043e\u0435 \u043a\u0430\u043a \u0432\u044b\u0437\u043e\u0432\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 memset(), \u043e\u0431\u043d\u0443\u043b\u044f\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u0442\u044c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438.  <\/p>\n<pre><code class=\"cpp\">class FD3D12BufferedGPUTiming {   ....   FD3D12CLSyncPoint* StartTimestampListHandles;   FD3D12CLSyncPoint* EndTimestampListHandles;   .... };  void FD3D12BufferedGPUTiming::InitDynamicRHI() {   ....   StartTimestampListHandles = new FD3D12CLSyncPoint[BufferSize];   ZeroMemory(StartTimestampListHandles,              sizeof(StartTimestampListHandles));    EndTimestampListHandles = new FD3D12CLSyncPoint[BufferSize];   ZeroMemory(EndTimestampListHandles,              sizeof(EndTimestampListHandles));   .... }<\/code><\/pre>\n<p>  \u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f PVS-Studio:<\/p>\n<ul>\n<li>V512 A call of the &#8216;memset&#8217; function will lead to underflow of the buffer &#8216;StartTimestampListHandles&#8217;. d3d12query.cpp 493<\/li>\n<li>V512 A call of the &#8216;memset&#8217; function will lead to underflow of the buffer &#8216;EndTimestampListHandles&#8217;. d3d12query.cpp 495<\/li>\n<\/ul>\n<p>  \u041e\u0448\u0438\u0431\u043a\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 sizeof() \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0440 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f, \u0430 \u043d\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430. \u041e\u0434\u043d\u0438\u043c \u0438\u0437 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432, \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"cpp\">ZeroMemory(StartTimestampListHandles,            sizeof(FD3D12CLSyncPoint) * BufferSize);  ZeroMemory(EndTimestampListHandles,            sizeof(FD3D12CLSyncPoint) * BufferSize);<\/code><\/pre>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 N7<\/b>  <\/p>\n<pre><code class=\"cpp\">void FDeferredShadingSceneRenderer::RenderLight(....) {   ....   if (bClearCoatNeeded)   {     SetShaderTemplLighting&lt;false, false, false, true&gt;(       RHICmdList, View, *VertexShader, LightSceneInfo);   }   else   {     SetShaderTemplLighting&lt;false, false, false, true&gt;(       RHICmdList, View, *VertexShader, LightSceneInfo);   }   .... }<\/code><\/pre>\n<p>  \u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: V523 The &#8216;then&#8217; statement is equivalent to the &#8216;else&#8217; statement. lightrendering.cpp 864<\/p>\n<p>  \u0412 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0443\u0441\u043b\u043e\u0432\u0438\u044f, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f.<\/p>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 N8<\/b>  <\/p>\n<pre><code class=\"cpp\">bool FBuildDataCompactifier::Compactify(....) const {   ....   uint64 CurrentFileSize;   ....   CurrentFileSize = IFileManager::Get().FileSize(*File);   if (CurrentFileSize &gt;= 0)   {     ....   }   else   {     GLog-&gt;Logf(TEXT(&quot;Warning. ......&quot;), *File);   }   .... }<\/code><\/pre>\n<p>  \u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: V547 Expression &#8216;CurrentFileSize &gt;= 0&#8217; is always true. Unsigned type value is always &gt;= 0. buildpatchcompactifier.cpp 135<\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u00abif (CurrentFileSize &gt;= 0)\u00bb \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430. \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f &#8216;CurrentFileSize&#8217; \u0438\u043c\u0435\u0435\u0442 \u0431\u0435\u0437\u0437\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0442\u0438\u043f, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u0435\u0451 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 &gt;= 0. <\/p>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 N9<\/b>  <\/p>\n<pre><code class=\"cpp\">template&lt;typename TParamRef&gt; void UnsetParameters(....) {   ....   int32 NumOutUAVs = 0;   FUnorderedAccessViewRHIParamRef OutUAVs[3];   OutUAVs[NumOutUAVs++] = ObjectBuffers......;   OutUAVs[NumOutUAVs++] = ObjectBuffers.Bounds.UAV;   OutUAVs[NumOutUAVs++] = ObjectBuffers.Data.UAV;    if (CulledObjectBoxBounds.IsBound())   {     OutUAVs[NumOutUAVs++] = ObjectBuffers.BoxBounds.UAV;   }   .... }<\/code><\/pre>\n<p>  V557 Array overrun is possible. The &#8216;NumOutUAVs ++&#8217; index is pointing beyond array bound. distancefieldlightingshared.h 388<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 (CulledObjectBoxBounds.IsBound()) \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f, \u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0451\u0442 \u0432\u044b\u0445\u043e\u0434 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043c\u0430\u0441\u0441\u0438\u0432\u0430. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432 &#8216;OutUAVs&#8217; \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 3 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 N10<\/b>  <\/p>\n<pre><code class=\"cpp\">class FSlateDrawElement {   ....   FORCEINLINE void SetPosition(const FVector2D&amp; InPosition)   { Position = Position; }   ....   FVector2D Position;   .... };<\/code><\/pre>\n<p>  \u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: V570 The &#8216;Position&#8217; variable is assigned to itself. drawelements.h 435<\/p>\n<p>  \u042d\u0442\u0443 \u043e\u0448\u0438\u0431\u043a\u0443 \u0434\u0430\u0436\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e. \u041e\u043f\u0435\u0447\u0430\u0442\u043a\u0430. \u0414\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c: { Position = InPosition; }.<\/p>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 N11<\/b>  <\/p>\n<pre><code class=\"cpp\">bool FOculusRiftHMD::DoesSupportPositionalTracking() const {   const FGameFrame* frame = GetFrame();   const FSettings* OculusSettings = frame-&gt;GetSettings();   return (frame &amp;&amp; OculusSettings-&gt;Flags.bHmdPosTracking &amp;&amp;           (OculusSettings-&gt;SupportedTrackingCaps &amp;            ovrTrackingCap_Position) != 0); }<\/code><\/pre>\n<p>  \u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: V595 The &#8216;frame&#8217; pointer was utilized before it was verified against nullptr. Check lines: 301, 302. oculusrifthmd.cpp 301<\/p>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f &#8216;frame&#8217; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f, \u0430 \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e nullptr.<\/p>\n<p>  \u042d\u0442\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u043e\u0447\u0435\u043d\u044c \u0441\u0445\u043e\u0436\u0430 \u0441 \u0442\u043e\u0439, \u0447\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0432 <a href=\"http:\/\/blog.klocwork.com\/static-analysis\/analysis-of-unreal-engine-4\/\">\u0441\u0442\u0430\u0442\u044c\u0435<\/a> Klocwork:  <\/p>\n<pre><code class=\"cpp\">bool FHeadMountedDisplay::IsInLowPersistenceMode() const {     const auto frame = GetCurrentFrame();     const auto FrameSettings = frame-&gt;Settings;     return frame &amp;&amp; FrameSettings-&gt;Flags.bLowPersistenceMode; }<\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u043e\u0431\u0430 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0443\u043c\u0435\u044e\u0442 \u0432\u044b\u044f\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0439 \u0432\u0438\u0434 \u0434\u0435\u0444\u0435\u043a\u0442\u0430.<\/p>\n<p>  \u0421\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043a\u043e\u0434 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043c\u044b\u0439 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 Klocwork, \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0443 ThirdParty, \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u044b \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0438.<\/p>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 N12 \u2014 N21<\/b>  <\/p>\n<pre><code class=\"cpp\">FName UKismetNodeHelperLibrary::GetEnumeratorName(   const UEnum* Enum, uint8 EnumeratorValue) {   int32 EnumeratorIndex = Enum-&gt;GetIndexByValue(EnumeratorValue);   return (NULL != Enum) ?          Enum-&gt;GetEnum(EnumeratorIndex) : NAME_None; }<\/code><\/pre>\n<p>  \u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: V595 The &#8216;Enum&#8217; pointer was utilized before it was verified against nullptr. Check lines: 146, 147. kismetnodehelperlibrary.cpp 146<\/p>\n<p>  \u041e\u043f\u044f\u0442\u044c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u043a\u043e\u0433\u0434\u0430 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0440\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u0430\u043d, \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d. \u0420\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0441\u043a\u0443\u0447\u043d\u043e. \u041f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u043c\u0435\u0441\u0442\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u043e\u0438\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435:<\/p>\n<ul>\n<li>V595 The &#8216;Class&#8217; pointer was utilized before it was verified against nullptr. Check lines: 278, 282. levelactor.cpp 278<\/li>\n<li>V595 The &#8216;Template&#8217; pointer was utilized before it was verified against nullptr. Check lines: 380, 386. levelactor.cpp 380<\/li>\n<li>V595 The &#8216;UpdatedComponent&#8217; pointer was utilized before it was verified against nullptr. Check lines: 100, 116. interptomovementcomponent.cpp 100<\/li>\n<li>V595 The &#8216;SourceTexture&#8217; pointer was utilized before it was verified against nullptr. Check lines: 150, 178. d3d12rendertarget.cpp 150<\/li>\n<li>V595 The &#8216;NewRenderTarget&#8217; pointer was utilized before it was verified against nullptr. Check lines: 922, 924. d3d11commands.cpp 922<\/li>\n<li>V595 The &#8216;RenderTarget&#8217; pointer was utilized before it was verified against nullptr. Check lines: 2173, 2175. d3d11commands.cpp 2173<\/li>\n<li>V595 The &#8216;MyMemory&#8217; pointer was utilized before it was verified against nullptr. Check lines: 210, 217. bttask_moveto.cpp 210<\/li>\n<li>V595 The &#8216;SkelComp&#8217; pointer was utilized before it was verified against nullptr. Check lines: 79, 100. animnode_animdynamics.cpp 79<\/li>\n<li>V595 The &#8216;Result&#8217; pointer was utilized before it was verified against nullptr. Check lines: 1000, 1004. uobjectglobals.cpp 1000<\/li>\n<\/ul>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 N22<\/b>  <\/p>\n<pre><code class=\"cpp\">class FD3D12Device {   ....   virtual void InitD3DDevice();   virtual void CleanupD3DDevice();   ....   \/\/ \u0414\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u043d\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d   .... };<\/code><\/pre>\n<p>  V599 The virtual destructor is not present, although the &#8216;FD3D12Device&#8217; class contains virtual functions. d3d12device.cpp 448<\/p>\n<p>  \u0412 \u043a\u043b\u0430\u0441\u0441\u0435 FD3D12Device \u0438\u043c\u0435\u044e\u0442\u0441\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0443 \u044d\u0442\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u0431\u0443\u0434\u0443\u0442 \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u0438. \u041e\u0434\u043d\u0430\u043a\u043e \u0432 \u044d\u0442\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u0435 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440. \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043e\u043f\u0430\u0441\u043d\u043e \u0438 \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0440\u0430\u043d\u043e \u0438\u043b\u0438 \u043f\u043e\u0437\u0434\u043d\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u0442 \u043a \u043e\u0448\u0438\u0431\u043a\u0435.<\/p>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 N23-N26<\/b>  <\/p>\n<pre><code class=\"cpp\">int SpawnTarget(WCHAR* CmdLine) {   ....   if(!CreateProcess(....))   {     DWORD ErrorCode = GetLastError();      WCHAR* Buffer = new WCHAR[wcslen(CmdLine) + 50];     wsprintf(Buffer,              L&quot;Couldn't start:\\n%s\\nCreateProcess() returned %x.&quot;,              CmdLine, ErrorCode);     MessageBoxW(NULL, Buffer, NULL, MB_OK);     delete Buffer;      return 9005;   }   .... }<\/code><\/pre>\n<p>  \u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: V611 The memory was allocated using &#8216;new T[]&#8217; operator but was released using the &#8216;delete&#8217; operator. Consider inspecting this code. It&#8217;s probably better to use &#8216;delete [] Buffer;&#8217;. bootstrappackagedgame.cpp 110<\/p>\n<p>  \u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u0430\u044f \u043f\u0430\u043c\u044f\u0442\u044c. \u0414\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e:  <\/p>\n<pre><code class=\"cpp\">delete [] Buffer;<\/code><\/pre>\n<p>  \u0415\u0441\u0442\u044c \u0435\u0449\u0451 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0430\u043a\u0438\u0445 \u043e\u0448\u0438\u0431\u043e\u043a:<\/p>\n<ul>\n<li>V611 The memory was allocated using &#8216;new T[]&#8217; operator but was released using the &#8216;delete&#8217; operator. Consider inspecting this code. It&#8217;s probably better to use &#8216;delete [] ChildCmdLine;&#8217;. bootstrappackagedgame.cpp 157<\/li>\n<li>V611 The memory was allocated using &#8216;new T[]&#8217; operator but was released using the &#8216;delete&#8217; operator. Consider inspecting this code. It&#8217;s probably better to use &#8216;delete [] ChildCmdLine;&#8217;. bootstrappackagedgame.cpp 165<\/li>\n<li>V611 The memory was allocated using &#8216;new T[]&#8217; operator but was released using the &#8216;delete&#8217; operator. Consider inspecting this code. It&#8217;s probably better to use &#8216;delete [] ChildCmdLine;&#8217;. bootstrappackagedgame.cpp 169<\/li>\n<\/ul>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 N27<\/b>   <\/p>\n<pre><code class=\"cpp\">void FSlateTexture2DRHIRef::InitDynamicRHI() {   ....   checkf(GPixelFormats[PixelFormat].BlockSizeX ==          GPixelFormats[PixelFormat].BlockSizeY ==          GPixelFormats[PixelFormat].BlockSizeZ == 1,          TEXT(&quot;Tried to use compressed format?&quot;));   .... }<\/code><\/pre>\n<p>  \u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: V709 Suspicious comparison found: &#8216;a == b == c&#8217;. Remember that &#8216;a == b == c&#8217; is not equal to &#8216;a == b &amp;&amp; b == c&#8217;. slatetextures.cpp 67<\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0442\u0430\u043a, \u043a\u0430\u043a \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u043b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442. \u041f\u043e \u0432\u0441\u0435\u0439 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c:  <\/p>\n<pre><code class=\"cpp\">GPixelFormats[PixelFormat].BlockSizeX == 1 &amp;&amp; GPixelFormats[PixelFormat].BlockSizeY == 1 &amp;&amp; GPixelFormats[PixelFormat].BlockSizeZ == 1<\/code><\/pre>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 N28<\/b>  <\/p>\n<pre><code class=\"cpp\">void UWidgetComponent::UpdateRenderTarget() {   ....   FLinearColor ActualBackgroundColor = BackgroundColor;   switch ( BlendMode )   {   case EWidgetBlendMode::Opaque:     ActualBackgroundColor.A = 1.0f;   case EWidgetBlendMode::Masked:     ActualBackgroundColor.A = 0.0f;   }   .... }<\/code><\/pre>\n<p>  V519 The &#8216;ActualBackgroundColor.A&#8217; variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 938, 940. widgetcomponent.cpp 940<\/p>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043a\u043e\u0441\u0432\u0435\u043d\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432\u044b\u044f\u0432\u043b\u0435\u043d \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 &#8216;break&#8217;. \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 &#8216;ActualBackgroundColor.A&#8217; \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u043f\u043e\u0434\u0440\u044f\u0434 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0438\u0441\u0432\u043e\u0435\u043d\u044b \u0440\u0430\u0437\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u042d\u0442\u043e \u0438 \u043d\u0430\u0441\u0442\u043e\u0440\u0430\u0436\u0438\u0432\u0430\u0435\u0442 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 PVS-Studio.<\/p>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 N29<\/b>  <\/p>\n<pre><code class=\"cpp\">void FProfilerManager::TrackDefaultStats() {   \/\/ Find StatId for the game thread.   for( auto It = GetProfilerInstancesIterator(); It; ++It )   {     FProfilerSessionRef ProfilerSession = It.Value();     if( ProfilerSession-&gt;GetMetaData()-&gt;IsReady() )     {       ....;     }     break;   } }<\/code><\/pre>\n<p>  \u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: V612 An unconditional &#8216;break&#8217; within a loop. profilermanager.cpp 717<\/p>\n<p>  \u041e\u0447\u0435\u043d\u044c \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434. \u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 &#8216;break&#8217; \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u043d\u0435 \u043d\u0430 \u0441\u0432\u043e\u0451\u043c \u043c\u0435\u0441\u0442\u0435. \u042f \u043d\u0435 \u0443\u0432\u0435\u0440\u0435\u043d, \u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"cpp\">for( auto It = GetProfilerInstancesIterator(); It; ++It ) {   FProfilerSessionRef ProfilerSession = It.Value();   if( ProfilerSession-&gt;GetMetaData()-&gt;IsReady() )   {     ....;     break;   } }<\/code><\/pre>\n<p>  <\/p>\n<h2>\u0418\u0442\u043e\u0433\u0438<\/h2>\n<p>  \u041f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 29 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 \u0438\u0437 120, \u0432\u044b\u0434\u0430\u043d\u043d\u044b\u0445 PVS-Studio \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u043d\u0430 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 (24%). \u0415\u0449\u0451 \u043e\u043a\u043e\u043b\u043e 50%, \u044d\u0442\u043e \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0430\u0445\u043d\u0435\u0442. \u041e\u0441\u0442\u0430\u0432\u0448\u0435\u0435\u0441\u044f \u2014 \u043b\u043e\u0436\u043d\u044b\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f. \u0421\u0443\u043c\u043c\u0430\u0440\u043d\u043e\u0435 \u0437\u0430\u0442\u0440\u0430\u0447\u0435\u043d\u043d\u043e\u0435 \u043c\u043d\u043e\u0439 \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u2014 \u043e\u043a\u043e\u043b\u043e 10 \u0447\u0430\u0441\u043e\u0432.<\/p>\n<p>  \u041a\u0430\u043a\u0438\u0435 \u0432\u044b\u0432\u043e\u0434\u044b \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432 PVS-Studio \u0438 Klocwork:<\/p>\n<ol>\n<li>\u0412 \u0431\u043e\u043b\u044c\u0448\u043e\u043c \u0438 \u0431\u044b\u0441\u0442\u0440\u043e \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u044e\u0449\u0435\u043c\u0441\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0435\u0449\u0451 \u043d\u0435\u043c\u043d\u043e\u0436\u043a\u043e \u043e\u0448\u0438\u0431\u043e\u043a \ud83d\ude42<\/li>\n<li>\u041d\u0430\u0431\u043e\u0440\u044b \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a PVS-Studio \u0438 Klocwork \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f, \u0445\u043e\u0442\u044f \u0438 \u0435\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u0435.<\/li>\n<li>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, Klocwork \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b Unreal Engine 4, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 (ThirdParty). \u041c\u044b \u043d\u0438 \u0442\u043e\u0433\u0434\u0430, \u043d\u0438 \u0441\u0435\u0439\u0447\u0430\u0441 \u044d\u0442\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0438. <\/li>\n<li>\u041e\u0431\u0430 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u043c\u043e\u043b\u043e\u0434\u0446\u044b, \u0438 \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u043e\u0441\u0438\u0442\u044c \u043c\u0430\u0441\u0441\u0443 \u043f\u043e\u043b\u044c\u0437\u044b \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c.<\/li>\n<\/ol>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0432\u0441\u0435\u043c \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.<\/p>\n<p>  <a href=\"http:\/\/www.viva64.com\/en\/b\/0356\/\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/35e\/064\/ddf\/35e064ddf91f5d99b620384893909ff7.png\" \/><\/div>\n<p><\/a><br \/>  \u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u0441 \u0430\u043d\u0433\u043b\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0439 \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u0435\u0439, \u0442\u043e \u043f\u0440\u043e\u0448\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043f\u0435\u0440\u0435\u0432\u043e\u0434: Andrey Karpov. <a href=\"http:\/\/www.viva64.com\/en\/b\/0356\/\">The Empire Strikes Back<\/a>.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u043e\u0447\u0438\u0442\u0430\u043b\u0438 \u0441\u0442\u0430\u0442\u044c\u044e \u0438 \u0435\u0441\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441?<\/b><\/p>\n<div class=\"spoiler_text\">\u0427\u0430\u0441\u0442\u043e \u043a \u043d\u0430\u0448\u0438\u043c \u0441\u0442\u0430\u0442\u044c\u044f\u043c \u0437\u0430\u0434\u0430\u044e\u0442 \u043e\u0434\u043d\u0438 \u0438 \u0442\u0435 \u0436\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b. \u041e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u043d\u0438\u0445 \u043c\u044b \u0441\u043e\u0431\u0440\u0430\u043b\u0438 \u0437\u0434\u0435\u0441\u044c: <a href=\"http:\/\/www.viva64.com\/ru\/a\/0085\/\">\u041e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439 \u0441\u0442\u0430\u0442\u0435\u0439 \u043f\u0440\u043e PVS-Studio, \u0432\u0435\u0440\u0441\u0438\u044f 2015<\/a>. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u044c\u0442\u0435\u0441\u044c \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c.  <\/div>\n<\/div>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/270783\/\"> http:\/\/habrahabr.ru\/post\/270783\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/c7e\/580\/055\/c7e58005517ebed59b94d43da7289872.png\" alt=\"\u0414\u0430\u0440\u0442 \u0412\u0435\u0439\u0434\u0435\u0440 - \u0415\u0434\u0438\u043d\u043e\u0440\u043e\u0433\" align=\"left\"\/><br \/>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0441\u0442\u0430\u0442\u044c\u044f \u00abHackathon 2: Time lapse analysis of Unreal Engine 4\u00bb, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043a\u0430\u043a \u0432\u0437\u044f\u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 Klocwork, \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043e\u0448\u0438\u0431\u043e\u043a \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 Unreal Engine 4. \u042f \u043d\u0435 \u043c\u043e\u0433\u0443 \u043f\u0440\u043e\u0439\u0442\u0438 \u043c\u0438\u043c\u043e \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438. \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 \u0441\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043c\u044b \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0438 \u0432\u0441\u0435 \u043e\u0448\u0438\u0431\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0448\u0435\u043b \u0432 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 PVS-Studio. \u041f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0431\u044b\u043b\u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u0441\u0435 \u043e\u0448\u0438\u0431\u043a\u0438, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u043c. \u041e\u0434\u043d\u0430\u043a\u043e \u0441\u0442\u0430\u0442\u044c\u044f \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 PVS-Studio \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u043b \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e. \u0427\u0442\u043e \u0436, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0439 \u0445\u043e\u0434. \u042f \u0442\u043e\u0436\u0435 \u0437\u0430\u043d\u043e\u0432\u043e \u043f\u0435\u0440\u0435\u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b Unreal Engine 4 \u0438 \u043d\u0430\u0448\u0435\u043b \u043c\u0430\u0441\u0441\u0443 \u043e\u0448\u0438\u0431\u043e\u043a. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u044f \u043c\u043e\u0433\u0443 \u0437\u0430\u044f\u0432\u0438\u0442\u044c, \u0447\u0442\u043e PVS-Studio \u0442\u043e\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0439\u0442\u0438 \u0441\u0435\u0439\u0447\u0430\u0441 \u0432 Unreal Engine 4 \u043d\u043e\u0432\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438. \u041d\u0438\u0447\u044c\u044f.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-268134","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/268134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=268134"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/268134\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=268134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=268134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=268134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}