Skip to content

Commit

Permalink
FSUI: Automatically hide advanced graphics settings
Browse files Browse the repository at this point in the history
depending on global advanced settings visibility
  • Loading branch information
kamfretoz committed May 13, 2024
1 parent fc2a750 commit d470f95
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pcsx2/ImGui/FullscreenUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3912,6 +3912,10 @@ void FullscreenUI::DrawGraphicsSettingsPage()

static constexpr const char* s_gsdump_compression[] = {FSUI_NSTR("Uncompressed"), FSUI_NSTR("LZMA (xz)"), FSUI_NSTR("Zstandard (zst)")};

const bool show_advanced_settings = ShouldShowAdvancedSettings(bsi);

if (show_advanced_settings)
{
MenuHeading(FSUI_CSTR("Advanced"));
DrawToggleSetting(bsi, FSUI_CSTR("Skip Presenting Duplicate Frames"),
FSUI_CSTR("Skips displaying frames that don't change in 25/30fps games. Can improve speed, but increase input lag/make frame pacing "
Expand Down Expand Up @@ -3941,6 +3945,7 @@ void FullscreenUI::DrawGraphicsSettingsPage()
"EmuCore/GS", "DisableShaderCache", false);
DrawToggleSetting(bsi, FSUI_CSTR("Disable Vertex Shader Expand"), FSUI_CSTR("Falls back to the CPU for expanding sprites/lines."),
"EmuCore/GS", "DisableVertexShaderExpand", false);
}

EndMenuButtons();
}
Expand Down

0 comments on commit d470f95

Please sign in to comment.