SDL Forum Index
Simple DirectMedia Layer Forums
Reply to topic
Input latency bug

Joined: 31 Jan 2017
Posts: 1
Reply with quote

I'm using win8 and my 20 years experience developing games. I have a very simple program that

1. create a window with shown + fullscreen
2. create a renderer with vsync + accelerated
3. game loop
4. pollEvents loop
5. render some sprites
6. go to 3.

I started noticing the mouse events seemed laggy. So I benched frame time: 16ms. I deactivated vsync, frame time: 2ms. Render way more sprite so that frame time goes to 16ms without vsync. Mouse input lag not there. Remove additional sprites rendering, then turn off fullscreen and turn vsync on again. No lag. Try fullscreen_desktop + vsync. No lag.

conclusion: [win8 +] vsync + fullscreen = input lag
View user's profileSend private message
Input latency bug
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

 Reply to topic