Re: screen refresh (vbl) synchronization behavior



forkazoo wrote:
Just because the function has returned doesn't necessarily mean the
swap has actually occurred.  It may just be queued for the next
retrace.  If you are rendering so fast that you swap buffers more than
once per frame, then the queue is already full, and the swap won't
return until the queue is cleared by the end of the retrace.

Correct - even the Nth SwapBuffers of a given retrace could return immediately if the implementation is capable of queuing up an infinite number of frames. The fact that it blocks indicates that the implementation (wisely) doesn't wish to allow so many frames to be queued up, or simply that it lacks the memory to continue queuing.


In fact, there is a chance that any GL call (including something as seemingly mundane as glColor3f) can block if the internal buffers are full and it causes an implicit flush. This is implementation dependent, of course.

So, are you seeing tearing?  If not, then everything is working as it
should.

Word. .



Relevant Pages

  • Re: Rendering Latency
    ... sync rate, one could "dirty" old frames before they get swapped to update ... them with newer data before a swap is mandated, ...
    (comp.graphics.api.opengl)
  • Re: Thatll be that then ..
    ... elyob whizzed past me shouting ... lifetime warranty on their frames?! ... they might swap it for you anyway to try and find out what went wrong with ...
    (uk.rec.cycling)
  • Re: screen refresh (vbl) synchronization behavior
    ... If you are rendering so fast that you swap buffers more than ... return until the queue is cleared by the end of the retrace. ...
    (comp.graphics.api.opengl)
  • Re: Why so many Look frames on eBay???
    ... Derk a écrit: ... frames there too than others. ... The experts at the swap had nothing bad to ... I guess folks just like to upgrade. ...
    (rec.bicycles.tech)
  • Re: HO - Proto 2k Heritage 0-8-0 - Track Pickup in Tender
    ... Of course you could just buy an 0-6-0 tender and swap the shells. ... The frames and plugs are identical to the 0-8-0. ...
    (rec.models.railroad)