diff options
| author | Juan Linietsky | 2016-06-05 19:14:33 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-06-05 19:14:33 -0300 |
| commit | 2420e46b449f4c8acdfe48c765ea52fc3e860de7 (patch) | |
| tree | a49df7158f20ee6dca044c8ff7d7e81c13d83073 /core/os/os.h | |
| parent | 684a1207c0a08889be7024d5851c224877557053 (diff) | |
| download | godot-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.h | 3 |
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(); |
