Sooo, I was listening to John Carmack's QuakeCon keynote and he mentions that he got the big three GPU vendors to change the swap interval interface: 0 swap interval means vsync off, 1 means on, and -1 means it's on, but only as long as your framerate is above the monitor's refresh rate, then it's off. So best of both worlds: smooth and tearing free while your PC can keep up with the action, a bit torn, but not stuttering if it can't. I implemented that for us in the attached patch against current trunk.
Sadly, on my current and up to date NVidia driver, the effect of -1 swapinterval is the one you'd expect if it's taken literally: buffers are swapped BEFORE they're ready, with horrible results. So I'm not going to apply it just yet, I guess it'll have to wait for Rage to come out. Storing it here in case I lose the file locally.
Negative swap interval
Negative swap interval
- Attachments
-
- negative_swapinterval.zip
- Patch for later
- (1.71 KiB) Downloaded 146 times