1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Added support for vertical syncing via the Windows OS compositor (DWM.)

This commit is contained in:
TerminalJack
2019-11-06 20:18:55 -06:00
committed by Rémi Verschelde
parent 10481046e5
commit e1dda5195c
11 changed files with 108 additions and 4 deletions

View File

@@ -572,6 +572,14 @@ bool OS::is_vsync_enabled() const {
return _use_vsync;
}
void OS::set_vsync_via_compositor(bool p_enable) {
_vsync_via_compositor = p_enable;
}
bool OS::is_vsync_via_compositor_enabled() const {
return _vsync_via_compositor;
}
OS::PowerState OS::get_power_state() {
return POWERSTATE_UNKNOWN;
}