aboutsummaryrefslogtreecommitdiff
path: root/core/os/os.h
diff options
context:
space:
mode:
authorJuan Linietsky2016-06-05 19:14:33 -0300
committerJuan Linietsky2016-06-05 19:14:33 -0300
commit2420e46b449f4c8acdfe48c765ea52fc3e860de7 (patch)
treea49df7158f20ee6dca044c8ff7d7e81c13d83073 /core/os/os.h
parent684a1207c0a08889be7024d5851c224877557053 (diff)
downloadgodot-2420e46b449f4c8acdfe48c765ea52fc3e860de7.tar.gz
godot-2420e46b449f4c8acdfe48c765ea52fc3e860de7.tar.zst
godot-2420e46b449f4c8acdfe48c765ea52fc3e860de7.zip
vsync support
-works on windows -may not work on X11, if so please fix -OSX does not seem to support disabling vsync
Diffstat (limited to 'core/os/os.h')
-rw-r--r--core/os/os.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/os/os.h b/core/os/os.h
index a1047bd48..c291d0925 100644
--- a/core/os/os.h
+++ b/core/os/os.h
@@ -420,6 +420,9 @@ public:
virtual void set_context(int p_context);
+ virtual void set_use_vsync(bool p_enable);
+ virtual bool is_vsnc_enabled() const;
+
bool is_hidpi_allowed() const { return _allow_hidpi; }
OS();
virtual ~OS();