View Single Post
Old 04-12-11, 11:20 PM   #10
sswam
Registered User
 
Join Date: Apr 2011
Posts: 1
Default Re: Bug: glFinish and glXWaitGL busy-wait for vsync buffer swap

FYI, if anyone is in a position to fix this, an easy way to sleep precisely and fairly reliably without burning 100% cpu is to nanosleep() or similar for perhaps 100 micro seconds less than the actual sleep time required, then to busy wait until the exact time. Not sure if this is applicable in waiting for vsync, depends whether the time of next vsync can be predicted with any accuracy. It should be possible.
sswam is offline   Reply With Quote