https://github.com/cinight/gpurecorderexample
https://github.com/cinight/gpurecorderexample
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cinight/gpurecorderexample
- Owner: cinight
- Created: 2020-11-05T16:08:13.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-11T14:28:46.000Z (over 5 years ago)
- Last Synced: 2025-01-19T09:44:14.802Z (over 1 year ago)
- Language: C#
- Size: 43.9 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GPURecorderExample
This example is using this [Recorder.gpuElapsedNanoseconds](https://docs.unity3d.com/2020.1/Documentation/ScriptReference/Profiling.Recorder-gpuElapsedNanoseconds.html) \
This API is only available from Unity **2020.1+**
Tested both playmode & player:
- Works in DX11 / DX12 / Vulkan
- Does not work in OpenGLCore
### HDRP
HDRP is also using this API. The numbers can be found in Debug Window:
#### Playmode
1. Enter playmode
2. Window > RenderPipeline > Render Pipeline Debug
3. Display Stats tab
4. Expand GPU timings
#### Player
1. Build Development build player
2. Run player
3. Ctrl+Backspace, debug menu will appear
4. PgUp + PgDn to change tab
5. Arrows and press enter