Sets or gets the swap interval.
- macOS 10.5–10.14Deprecated
The swap interval is represented as one
long. If the swap interval is set to
0 (the default), the
flushBuffer method executes as soon as possible, without regard to the vertical refresh rate of the monitor. If the swap interval is set to
1, the buffers are swapped only during the vertical retrace of the monitor.
Set or get the height and width of the back buffer. You can use this to let the system scale an image automatically on swapping to a variable-size buffer. The back buffer size remains fixed at the size that you set up regardless of whether the image is resized to display larger onscreen.
Returns a Boolean that indicates whether a drawable is attached to the context.
The number of frames that the multithreaded OpenGL engine can process before stalling. The default value is 1. New frames are queued when the application calls the
flushBuffer method. A larger number may improve overall performance, but adds latency between when a frame is rendered and when a frame is displayed. Interactive applications should leave this value at the default.
If enabled, OpenGL inspects the context state each time the
update method is called to ensure that it is in an appropriate state for switching between renderers.