MGL_waitVRTFlagType
Declaration
typedef enum {
MGL_tripleBuffer = 0,
MGL_waitVRT =
1,
MGL_dontWait =
2
} MGL_waitVRTFlagType
Prototype In
mgraph.h
Description
Defines for waitVRT flag for MGL_setVisualPage, MGL_swapBuffers and MGL_glSwapBuffers.
Members
MGL_tripleBuffer |
Triple buffer. This mode enables hardware or software triple buffering if available on the target system. In this case when triple buffering is available the MGL will ensure that there is no flicker when flipping pages, however your frame rate will run at the maximum rate until you get to the physical refresh rate of the screen (ie: 60fps or higher). Note that if there is no hardware or software triple buffering available, this function will work like regular double buffering. Note also that you must have at least 3 pages available for triple buffering to work. |
MGL_waitVRT |
Wait for vertical retrace. This mode always waits for the vertical retrace when swapping display pages, and is required if only have two pages available to avoid flicker during animation. |
MGL_dontWait |
Don't wait for retrace. This mode simply programs the display start address change and returns. This may cause flicker on the screen during animation, and is mostly useful for debugging and testing purposes to see what the raw framerate of an animation is. Also if you dont have hardware or software triple available, and you allocate at least 3 pages you can achieve the effect of triple buffering if you know that the frame rate of your animation will not exceed the refresh rate of the screen. |
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com