[Overview][Constants][Types][Classes][Index] Reference for unit 'ptc' (#ptc)

IPTCConsole.OpenGL_SetSwapInterval

Sets the OpenGL swap interval.

Declaration

Source position: baseconsoled.inc line 81

procedure IPTCConsole.OpenGL_SetSwapInterval(

  AInterval: Integer

);

Description

Sets the OpenGL swap interval. The swap interval is the number of v-blanks that must occur before the front and back framebuffers are swapped. A swap interval of 1 means the GPU should synchronize the swap with the next v-blank. A value of 0 means that swaps must occur as soon as requested, without waiting for v-blank. Note that video drivers may choose to override this value to 1 or 0 and thus ignore the application settings, depending on the user settings in the video card driver control panel.

See also

IPTCConsole.OpenGL_GetSwapInterval

  

Gets the OpenGL swap interval.