Negative swap interval

What do you want to see in Armagetron soon? Any new feature ideas? Let's ponder these ground breaking ideas...
Post Reply
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Negative swap interval

Post by Z-Man »

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.
Attachments
negative_swapinterval.zip
Patch for later
(1.71 KiB) Downloaded 146 times
Post Reply