Flushing


On some devices (particularly X11) considerable speedups in display can be achieved by not flushing each graphics primitive call to the actual display until necessary. VOGL automatically delays flushing in the following cases:

There are two user routines that can be used to control flushing.


vsetflush(yesno)

Set global flushing status. If yesno = 0 (.false.) then don't do any flushing (except in swapbuffers(), or vflush()). If yesno = 1 (.true.) then do the flushing as described above.

    Fortran:
         subroutine vsetflush(yesno)
         logical yesno

    C:
         void
         vsetflush(yesno)
              int  yesno;

    Pascal:
         procedure VsetFlush(yesno: boolean);

vflush()

Call the device flush or syncronisation routine. This forces a flush.

    Fortran:
         subroutine vflush

    C:
         void
         vflush();

    Pascal:
         procedure Vflush;