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:
https://www.bencloward.com/youtube/cobblestones_d.tga
https://www.bencloward.com/youtube/cobblestones_s.tga
https://www.bencloward.com/youtube/cobblestones_r.tga
https://www.bencloward.com/youtube/cobblestones_n.tga
https://www.bencloward.com/youtube/cobblestones_ao.tga
https://www.bencloward.com/youtube/cobblestones_asmr.tga
------------------------------
Learn more!!
Other videos like this one:
https://www.youtube.com/watch?v=hcxetY8g_fs
https://www.youtube.com/watch?v=SXLYy6D1y80
https://www.youtube.com/watch?v=4TbvHqf0U04
Web Resources
https://www.bitshiftprogrammer.com/2018/11/shader-optimization-part-1.html
https://knarkowicz.wordpress.com/2010/10/26/shader-optimizations/
https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-optimize
Shader Book Recommendations
https://www.bencloward.com/resources_books.shtml
------------------------------
Learn to write shaders in HLSL:
https://www.youtube.com/playlist?list=PL78XDi0TS4lEDHfahG4ddRwZ3AUrOIYcq
https://www.youtube.com/playlist?list=PL78XDi0TS4lE772rZflLkFe-WdhYEV4WE
https://www.youtube.com/playlist?list=PL78XDi0TS4lE6UnUO9OTC5M1Wo3bJLDe9
------------------------------
Theme Music
Peace in the Circuitry - Glitch Hop
http://teknoaxe.com/Link_Code_3.php?q=1526
Background Music
Crying Voice- Burning
https://soundcloud.com/cryingvoicemusic