|
@@ -782,7 +782,7 @@ void ImGui_ImplSDL3_NewFrame()
|
|
|
if (w > 0 && h > 0)
|
|
|
io.DisplayFramebufferScale = ImVec2((float)display_w / w, (float)display_h / h);
|
|
|
|
|
|
- // Setup time step (we don't use SDL_GetTicks() because it is using millisecond resolution)
|
|
|
+ // Setup time step (we could also use SDL_GetTicksNS() available since SDL3)
|
|
|
// (Accept SDL_GetPerformanceCounter() not returning a monotonically increasing value. Happens in VMs and Emscripten, see #6189, #6114, #3644)
|
|
|
static Uint64 frequency = SDL_GetPerformanceFrequency();
|
|
|
Uint64 current_time = SDL_GetPerformanceCounter();
|