Leistungsprobleme in XCOM 2

Hallo! Mein Name ist Alexander, ich bin der Leiter der Computergrafikprogrammierer bei Gaijin in den Projekten CRSED und Enlisted . In meiner Freizeit recherchiere ich manchmal, wie die Grafik in anderen Spielen funktioniert, und finde dort etwas Interessantes.





Ich habe mich kürzlich entschlossen herauszufinden, warum XCOM 2 auf meinem Laptop langsamer wird. Während ich das Rendering dieses Spiels studierte, fand ich eine Reihe von Stellen, die ohne Probleme beschleunigt werden konnten. Die Ergebnisse meiner kleinen Forschung haben zu einem Video geführt:





.






!





, XCOM 2 . 2016 . Unreal Engine 3.5. XCOM , . , , .





, , — FPS, . . FPS 25-30. , GTX 1050 . 6 ,   .





RenderDoc 1.12. , . , , .





. , ( ), , , .. , .





«» G-buffer

G-buffer'. — G-buffer' (>16 ). , .





G-buffer 5 RGBA16F, 4 16- .





1080 80 , , , . , — , — .





, G-buffer :





  1. (.. ) ( - ).





  2. (- Ambient Occlusion).





  3. ( - 4 )





  4. ( + roughness).





  5. ( - — , )





. 16 12 .





4 8- ( 0 1). 2 . 8 .





. , , [ ]. , , , .





4 , , 2 . , . 2 16 . 8 .





, .





— . 3 — , , 2 . 3 . . , . , , 0 .





, 12 , 8 , 8 16 . 44 . . , G-buffer.





, G-buffer, — (prepass). Prepass — . G-buffer' , . , .





G-buffer' 24 .





, prepass’ G-buffer CPU. , , , G-buffer, prepass’. , . , , .





. ( DrawIndexed ), . , DrawIndexed DrawIndexedInstanced, .





. , , , DirectX, . FPS.





Level of Details

— level of details. , .





-, . . -, . , .





. , .





SSAO (Screen Space Ambient Occlusion)

G-buffer' — SSAO. 8 10 . , .





GTAO, . Activision Blizzard AO . PlayStation 4, . , 2.5 GFLOPS, AO 20 Blizzard. , , AO .





Depth of Field

— depth of field. XCOM . 3 . .





, , . . , .





, , . , , , 4 . , .





, . .








All Articles