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
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 toENABLE_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