JoshuaBrookover / bigg

bgfx, imgui, glfw, glm
The Unlicense
224 stars 35 forks source link

Timer resolution too low #32

Open sippeangelo opened 3 years ago

sippeangelo commented 3 years ago

https://github.com/Josh4428/bigg/blob/e714c764b4e1b272722870a0580328b0db0fcd79/src/bigg.cpp#L233-L235

Sometimes the dt calculation comes out as 0, causing this assert in Imgui to hit

https://github.com/ocornut/imgui/blob/e7e170c534d27ae32f7b87d17295036ed9c9af81/imgui.cpp#L7146

Not sure why Imgui absolutely requires dt to be greater than 0, but it might be helpful to increase to double precision, or just clamp it to always be something small.