Problemas de rendimiento en XCOM 2

¡Oye! Mi nombre es Alexander, soy el jefe de programadores de gráficos por computadora en Gaijin en los proyectos CRSED y Alistados . A veces, en mi tiempo libre, investigo cómo funcionan los gráficos en otros juegos y encuentro algo interesante allí.





Recientemente decidí averiguar por qué XCOM 2 se está ralentizando en mi computadora portátil. Mientras estudiaba el renderizado de este juego, encontré varios lugares que podrían acelerarse sin ningún problema. Los resultados de mi pequeña investigación han dado como resultado un video:





.






!





, 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