Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411595 Posts in 69387 Topics- by 58445 Members - Latest Member: gravitygat

May 08, 2024, 07:29:37 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Input Latency
Pages: 1 [2]
Print
Author Topic: Input Latency  (Read 4004 times)
Will Vale
Level 4
****



View Profile WWW
« Reply #20 on: March 17, 2009, 12:28:02 PM »

When you consider it, a swap buffer (how ever many you may be using) should be already finished by the time you're going to swap it ... right?

I'm not sure which post you're replying to, but when you call SwapBuffers on the CPU on a system with hardware 3D, the GPU is very unlikely to have finished rendering to the backbuffer - it runs behind the CPU not in sync with it.

You can still go on and render the next frame, and often you don't need to worry about this async behaviour since the drivers will manage it for you, but if you're having latency issues like the OP you might need to consider managing your CPU/GPU interaction a bit more to reduce them. I agree that glFlush and glFinish are blunt instruments, but they can be useful in the right scenario. A better approach would be to use fences to force the GPU to run only one frame behind, that can be pretty good.
Logged
Pages: 1 [2]
Print
Jump to:  

Theme orange-lt created by panic