feat: allow toggling vsync, fix: vrr support (#2716)
This commit is contained in:
Submodule libultraship updated: 7095465986...10bd53be80
@@ -227,6 +227,10 @@ namespace GameMenuBar {
|
||||
UIWidgets::ReEnableComponent("");
|
||||
}
|
||||
|
||||
if (Ship::Window::GetInstance()->CanDisableVerticalSync()) {
|
||||
UIWidgets::PaddedEnhancementCheckbox("Enable Vsync", "gVsyncEnabled", true, false);
|
||||
}
|
||||
|
||||
if (SohImGui::SupportsWindowedFullscreen()) {
|
||||
UIWidgets::PaddedEnhancementCheckbox("Windowed fullscreen", "gSdlWindowedFullscreen", true, false);
|
||||
}
|
||||
|
||||
@@ -320,7 +320,11 @@ bool OTRGlobals::HasOriginal() {
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user