Browse Source

Backends: SDL3: Comments (#6146)

ocornut 4 months ago
parent
commit
4a6ba95392
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backends/imgui_impl_sdl3.cpp

+ 1 - 1
backends/imgui_impl_sdl3.cpp

@@ -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();