From 0a64ae3b6b04ccbe10ac0fa8702b38d60fb5c496 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Mon, 4 Jul 2022 11:07:48 +0100 Subject: [PATCH] Xbox NXDK: Default vsync to false and hide option Looks like vsync doesn't work on NXDK at the moment. Defaults it to false and hides it from the menu. It is still possible to manually enable it via `diablo.ini` for testing. --- Source/options.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Source/options.cpp b/Source/options.cpp index 4fd68a5a2..1ec3a90d9 100644 --- a/Source/options.cpp +++ b/Source/options.cpp @@ -896,7 +896,20 @@ GraphicsOptions::GraphicsOptions() { ScalingQuality::AnisotropicFiltering, N_("Anisotropic") }, }) , integerScaling("Integer Scaling", OptionEntryFlags::CantChangeInGame | OptionEntryFlags::RecreateUI, N_("Integer Scaling"), N_("Scales the image using whole number pixel ratio."), false) - , vSync("Vertical Sync", OptionEntryFlags::RecreateUI, N_("Vertical Sync"), N_("Forces waiting for Vertical Sync. Prevents tearing effect when drawing a frame. Disabling it can help with mouse lag on some systems."), true) + , vSync("Vertical Sync", + OptionEntryFlags::RecreateUI +#ifdef NXDK + | OptionEntryFlags::Invisible +#endif + , + N_("Vertical Sync"), + N_("Forces waiting for Vertical Sync. Prevents tearing effect when drawing a frame. Disabling it can help with mouse lag on some systems."), +#ifdef NXDK + false +#else + true +#endif + ) #endif , gammaCorrection("Gamma Correction", OptionEntryFlags::Invisible, "Gamma Correction", "Gamma correction level.", 100) , colorCycling("Color Cycling", OptionEntryFlags::None, N_("Color Cycling"), N_("Color cycling effect used for water, lava, and acid animation."), true)