ValveSoftware / voglperf

Benchmarking tool for Linux OpenGL games. Spews frame information, logs frametimes.
Other
201 stars 31 forks source link

Possible race condition in log files. #37

Open xorgy opened 5 years ago

xorgy commented 5 years ago

My application is rendering frames in about 100-200μs each, at times, and sometimes when the frametimes are around there, voglperf's log files will have an extra "0." before a frametime line. It looks like:

...
0.13
0.17
0.0.17
0.20
...

And I'm not sure exactly how that comes about.

xorgy commented 5 years ago

I think maybe I should just increase the buffer size, I think I'm recording too many frames per second and overflowing the static buffer (which seems to be per-second).