
CPU profiling for Unity
This is a general guide focusing on CPU profiling for Unity, including which tools are useful for profiling and how to use these tools to find hotspots in your code.
AMD FidelityFX™ Super Resolution 2 (FSR 2) is our open source temporal upscaling solution. FSR 2 uses cutting-edge temporal algorithms to reconstruct fine geometric and texture detail, producing anti-aliased output from aliased input.
While this patch targets URP 12.1.7 in particular, you can still use this patch for other versions (including newer) with a few careful changes.
Note that this version of the patch supports DX11 only.
AMD FidelityFX™ Super Resolution (FSR) is an open source, high-quality solution for producing high resolution frames from lower resolution inputs. It uses a collection of cutting-edge algorithms with a particular emphasis on creating high-quality edges, giving large performance improvements compared to rendering at native resolution directly. FSR enables “practical performance performance” for costly render operations, such as hardware ray tracing.
This patch modifies Unity URP to include FSR 1.0. The current version of our patch file targets URP 10.6.0, but with a few careful changes you can still use it for both older and newer versions.
git apply [PATH TO PATCH]
.After integrating FSR correctly and toggling on the Camera post-processing in your Unity project, the option for AMD FSR 1.0 will appear below it.
You can choose different FSR modes according to your requirements.
At present, if you turn on FSR, the anti-aliasing (MSAA) setting will be set to 8X by default.
You can change this to a lower MSAA level or other anti-aliasing solution. However, keep in mind that FSR 1.0 requires an anti-aliasing process before it can work.
The MSAA setting is:
settings.msaaSampleCount = 8;
Note: Mobile platforms (including standalone VR headsets) are not guaranteed to work due to the compute shader implementation.
FidelityFX Super Resolution is currently available in Unity 2021.2.
Unity developers can use FSR by enabling dynamic resolution in your HDRP assets and Cameras, and then selecting “FidelityFX Super Resolution 1.0” under the “Upscale filter” option. FSR settings can be tweaked along in the dynamic resolution panel.
We’ve made a video using Unity’s Spaceship demo with FSR support, so you can see how well it works!
You can also try out FSR yourself with the Spaceship demo available on Steam – activate FidelityFX Super Resolution in the Graphics options.
Watch Improved Spatial Upscaling through FidelityFX Super Resolution for Real-Time Game Engines, presented by Unity’s Timothy Lottes and Kleber Garcia.
The talk covers the algorithmic underpinnings of FSR and their practical integration into Unity 2021.2. [slides]
This video was first shown during the Advances in Real-Time Rendering in Games track at SIGGRAPH 2021.
Unity China HairFX uses our TressFX open source high quality real-time hair simulation and rendering framework.
It supports both Unity’s Universal Render Pipeline (URP) and Unity’s High Definition Render Pipeline (HDRP).
It is also compatible with the Unity 2021 Long Term Support (LTS).
Watch the Defender video below which shows the hair effects rendered by Unity China HairFX.
Find out more about Unity China HairFX on our blog!
Trademarks
Unity, Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere.