BGE: Adding vsync control. Users can enable vsync, disable vsync, or use adaptive vsync via UI options in the render properties, or by using the new Python method bge.render.setVsync(). Win32 and X11 support are done via EXT_swap_control. Support for using EXT_swap_control on OS X still needs to be added to Ghost.
This commit is contained in:
@@ -413,6 +413,9 @@ class RENDER_PT_game_system(RenderButtonsPanel, Panel):
|
||||
col.prop(gs, "use_display_lists")
|
||||
col.active = gs.raster_storage != 'VERTEX_BUFFER_OBJECT'
|
||||
|
||||
row = layout.row()
|
||||
row.prop(gs, "vsync")
|
||||
|
||||
row = layout.row()
|
||||
row.prop(gs, "raster_storage")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user