I am trying to get performance data for scene rendering (Init Views, Base Pass Draw Time, etc) but using any stat command such as “Stat Scenerendering” or “Stat Startfile/Stopfile” affects the game and draw thread, therefore I feel like I cannot trust the numbers I am getting from those commands. I was wondering if there is a way to initialize the stat counters and grab that data without using those commands and affecting the overall performance. I have tried looking into the code for the stat commands themselves, but haven’t found anything that works.
If you do all your performance measurements with the stat tool on it does not matter. Use percentage performance increases for results. For example:
- get performance data with measurement tools on
- make game optimizations
- get performance data with measurement tools on again
- results: FPS increased by 20% after optimizations