This video discusses ways to measure the performance of your shader and then optimize it so that it runs faster on the GPU. Performance measurement methods include using the built-in Shader Complexity View in Unreal's viewport, checking the shader's instruction count, and measureing the actual framerate or GPU milisecond timing that it takes to render your shader. Once you know your shader's performance, you can optimize it in several ways - including removing unused parts of the shader, refactoring math formulas, combining single channel data together for performing math on multiple channels in a single operation, and packing texture maps together into a single texture to reduce texture sampling.
Download the textures used in this video:
www.bencloward.com/youtube/cobblestones_d.tga
www.bencloward.com/youtube/cobblestones_s.tga
www.bencloward.com/youtube/cobblestones_r.tga
www.bencloward.com/youtube/cobblestones_n.tga
www.bencloward.com/youtube/cobblestones_ao.tga
www.bencloward.com/youtube/cobblestones_asmr.tga
------------------------------
Learn more!!
Other videos like this one:
kzitem.info/news/bejne/yZmuy6iPcZmQmag
kzitem.info/news/bejne/tI6Cv61sfWOqa2U
kzitem.info/news/bejne/lYqY3Hynn2KGY2k
Web Resources
www.bitshiftprogrammer.com/2018/11/shader-optimization-part-1.html
knarkowicz.wordpress.com/2010/10/26/shader-optimizations/
docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-optimize
Shader Book Recommendations
www.bencloward.com/resources_books.shtml
------------------------------
Learn to write shaders in HLSL:
kzitem.info/door/PL78XDi0TS4lEDHfahG4ddRwZ3AUrOIYcq
kzitem.info/door/PL78XDi0TS4lE772rZflLkFe-WdhYEV4WE
kzitem.info/door/PL78XDi0TS4lE6UnUO9OTC5M1Wo3bJLDe9
------------------------------
Theme Music
Peace in the Circuitry - Glitch Hop
teknoaxe.com/Link_Code_3.php?q=1526
Background Music
Crying Voice- Burning
soundcloud.com/cryingvoicemusic
Негізгі бет Shader Performance Optimization - UE4 Materials 101 - Episode 7
Пікірлер: 83