VSync logic : UPS / FPS
Posted by Kam on Aug 13, 2010; 2:47pm
URL: https://forum.jogamp.org/VSync-logic-UPS-FPS-tp1134125.html
Hi
First of all, no, I'm not asking how to enable/disable vertical sync.
I'm already using setSwapInterval, and it's working very well.
I would juste like to understand interactions between vsync, and buffer swap.
When i swap buffers, either using autoSwap or calling it by myself, what's happening if vertical sync is enabled :
- Is my call blocking ?
- Is my call delayed until vsync occurs ? If so, what happends if I do call swapBuffer twice before a vsync ? Do I overwrite a the - first buffer before it to be blit on screen ?
- Is my buffer cloned somewhere, and blit on vsync event ?
It just makes me crazy to see that I'm not able to adjust Updates per Second and Frames per Second in my game.
So, If anyone could bring me some light, it would be very helpfull !
Thanks in advance,
Camille