@cmuratori I have a question that unfortunately was too late for handmade hero today: In windows, window movement has 0 latency compared to the hardware mouse cursor. It follows pixel perfect. How does it do that? My own imgui has visible latency with vsync off and 0.2 ms frames.
You can improve the situation for yourself by polling for the mouse more aggressively, and doing it right at the very end of everything you do, so it's as close to the SwapBuffers/Present as possible. But you can't do what Windows does, which is make sure that it's never off.
-
-
Makes sense! I phrased that badly, I didn't mean to say that the cursor had increased latency, only that it would show the actual application latency, which is always more than windows' latency. Pushing everything close to Present would be less effective, the shorter my frames...
-
are, right? Since the present call happens further from the actual monitor swapping images. So ideally the frame would start as late as possible to call present right before the monitor is about to switch, only that I cant know when that will be, and how long the frame will take.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.