From 2420e46b449f4c8acdfe48c765ea52fc3e860de7 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sun, 5 Jun 2016 19:14:33 -0300 Subject: vsync support -works on windows -may not work on X11, if so please fix -OSX does not seem to support disabling vsync --- core/os/os.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/os/os.cpp') diff --git a/core/os/os.cpp b/core/os/os.cpp index 4daf41e68..e501bc2eb 100644 --- a/core/os/os.cpp +++ b/core/os/os.cpp @@ -539,6 +539,14 @@ String OS::get_joy_guid(int p_device) const { void OS::set_context(int p_context) { } +void OS::set_use_vsync(bool p_enable) { + +} + +bool OS::is_vsnc_enabled() const{ + + return true; +} OS::OS() { last_error=NULL; -- cgit v1.2.3-70-g09d2