In this shader tutorial, I show the most accurate way to measure shader performance with Unreal 5 and Unity - by running the shader on the target hardware. First I show how to create a very simple test scene with just a camera pointed at a flat plane with the shader applied. Then I show how to build the scene so it can run outside the editor. And finally, we run the scene and measure how long it takes to render using either a frame-rate counter or Microsoft PIX. Measuring how long it takes to render works best if you can do it on the hardware that your game will ship on.
Creating a build of your simple project in Unreal 5 requires a couple of extra steps that can be found in these two links:
www.reddit.com/r/unrealengine/comments/nm6nuz/are_…
• Video
If you'd like to add a framerate counter to your project, you can use these links to learn how to do it:
Unreal: couchlearn.com/show-fps-counter-in-unreal-engine-4…
Unity: • Framerate Counter in Unity & C#
Here's the link to download PIX:
devblogs.microsoft.com/pix/download/
Here's last week's video that explains why using Instruction Count is not accurate for measuring shader performance:
• Shader Performance Measurement - Shader Gr...
And here's the playlist for the whole series:
• Shader Graph Basics
Learn More!
• Unite 2016 - Shader Profiling and Optimiza...
• Profiling and Optimization in UE4 | Unreal...
• Shader Optimization – True Instruction Cos...
Resources on the web:
docs.unity3d.com/Manual/shader-performance-debuggi…
developer.apple.com/documentation/metal/shader_aut…
developer.android.com/agi/frame-trace/shader-perfo…
Shader Book Recommendations
www.bencloward.com/resources_books.shtml
------------------------------
Theme Music
Peace in the Circuitry - Glitch Hop
teknoaxe.com/Link_Code_3.php?q=1526
Background Music
Speo - The Little Things
• The Little Things
#UnrealEngine #shadergraph #Unity
コメント