render-timing-for-unity icon indicating copy to clipboard operation
render-timing-for-unity copied to clipboard

a question

Open xvde110 opened this issue 7 years ago • 1 comments

every frame the script call startevent and endevent, that mean every frame we store a time that GPU use in buffer,but we get the time just every second, we may lost lots of frames time and what we get is the latest frame. if this project just want to get one frame time that GPU use,i think you should use bigger buffer to store, i suggest we get one second GPU use time, every startevent,we add the before time, when call gettimeEvent,return the total time and reset it.

xvde110 avatar Jul 11 '18 10:07 xvde110

RenderTiming.instance.deltaTime is updated every frame. It's your application's decision how to use it.

Logging once per second is meant as an example and can be disabled.

belm0 avatar Jul 11 '18 23:07 belm0