TheOpenSpaceProgram / new-ospgl

A space exploration game in OpenGL. Devblog: https://tatjam.github.io/index.html
MIT License
42 stars 6 forks source link

Detailed timing added #20

Closed Ghimli closed 4 years ago

tatjam commented 4 years ago

The biggest change is that to profile a block you do this: PROFILE("name", { code }); I find that more comfortable than the previous use as there is no need to register anything before-hand. The directive can be disabled at compile time, changed the name to ENABLE_PROFILER Now we need a cool way to display the timing results, both to text and to the ImGui interface.

I may have broken the avg calculation, 2AM coding...

EDIT: I did some weird git stuff, hope I didn't break anything on your fork