mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-22 17:32:19 -05:00
feat: allow toggling vsync, fix: vrr support (#2716)
This commit is contained in:
parent
853bff3e41
commit
37390c441f
@ -1 +1 @@
|
|||||||
Subproject commit 709546598603966e5e09d7915fdd9117e5447591
|
Subproject commit 10bd53be80e842052b9c68aa64c03b8548dd58d8
|
@ -227,6 +227,10 @@ namespace GameMenuBar {
|
|||||||
UIWidgets::ReEnableComponent("");
|
UIWidgets::ReEnableComponent("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Ship::Window::GetInstance()->CanDisableVerticalSync()) {
|
||||||
|
UIWidgets::PaddedEnhancementCheckbox("Enable Vsync", "gVsyncEnabled", true, false);
|
||||||
|
}
|
||||||
|
|
||||||
if (SohImGui::SupportsWindowedFullscreen()) {
|
if (SohImGui::SupportsWindowedFullscreen()) {
|
||||||
UIWidgets::PaddedEnhancementCheckbox("Windowed fullscreen", "gSdlWindowedFullscreen", true, false);
|
UIWidgets::PaddedEnhancementCheckbox("Windowed fullscreen", "gSdlWindowedFullscreen", true, false);
|
||||||
}
|
}
|
||||||
|
@ -320,7 +320,11 @@ bool OTRGlobals::HasOriginal() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint32_t OTRGlobals::GetInterpolationFPS() {
|
uint32_t OTRGlobals::GetInterpolationFPS() {
|
||||||
if (CVarGetInteger("gMatchRefreshRate", 0) && SohImGui::WindowBackend() != SohImGui::Backend::DX11) {
|
if (SohImGui::WindowBackend() == SohImGui::Backend::DX11) {
|
||||||
|
return CVarGetInteger("gInterpolationFPS", 20);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CVarGetInteger("gMatchRefreshRate", 0)) {
|
||||||
return Ship::Window::GetInstance()->GetCurrentRefreshRate();
|
return Ship::Window::GetInstance()->GetCurrentRefreshRate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user