From f19b062936dd4d0641f8adfb16df3f36335a1bf1 Mon Sep 17 00:00:00 2001
From: flick9000 <137506210+flick9000@users.noreply.github.com>
Date: Fri, 22 May 2026 22:08:57 +0200
Subject: [PATCH] feat: disable optimizations for windowed games
---
app/public/icons/gaming/windowed.svg | 3 +++
app/src/assets/js/scripts.js | 5 +++++
app/src/components/MainPage.astro | 8 ++++++++
app/src/i18n/locales/en.json | 1 +
app/src/i18n/locales/it.json | 1 +
app/src/i18n/locales/ko.json | 1 +
app/src/i18n/locales/ru.json | 1 +
app/src/i18n/locales/tr.json | 1 +
website/public/icons/gaming/windowed.svg | 3 +++
website/src/assets/js/scripts.js | 5 +++++
website/src/components/MainPage.astro | 8 ++++++++
website/src/i18n/locales/en.json | 1 +
website/src/i18n/locales/it.json | 1 +
website/src/i18n/locales/ko.json | 1 +
website/src/i18n/locales/ru.json | 1 +
website/src/i18n/locales/tr.json | 1 +
16 files changed, 42 insertions(+)
create mode 100644 app/public/icons/gaming/windowed.svg
create mode 100644 website/public/icons/gaming/windowed.svg
diff --git a/app/public/icons/gaming/windowed.svg b/app/public/icons/gaming/windowed.svg
new file mode 100644
index 0000000..600aa8d
--- /dev/null
+++ b/app/public/icons/gaming/windowed.svg
@@ -0,0 +1,3 @@
+
diff --git a/app/src/assets/js/scripts.js b/app/src/assets/js/scripts.js
index 6d7d558..3c0ce29 100644
--- a/app/src/assets/js/scripts.js
+++ b/app/src/assets/js/scripts.js
@@ -756,6 +756,10 @@ document.addEventListener("DOMContentLoaded", function () {
"Write-Host '-- Disabling Fullscreen Optimizations' -ForegroundColor Green",
'reg add "HKCU\\System\\GameConfigStore" /v "GameDVR_DXGIHonorFSEWindowsCompatible" /t REG_DWORD /d 1 /f',
],
+ windowedoptimizations: [
+ "Write-Host '-- Disabling Optimizations for Windowed Games' -ForegroundColor Green",
+ 'reg add "HKCU\\Software\\Microsoft\\DirectX\\UserGpuPreferences" /v "DirectXUserGlobalSettings" /t REG_SZ /d "SwapEffectUpgradeEnable=0;" /f',
+ ],
mouseacc: [
"Write-Host '-- Disabling Mouse Acceleration' -ForegroundColor Green",
'reg add "HKCU\\Control Panel\\Mouse" /v "MouseSpeed" /t REG_SZ /d "0" /f',
@@ -935,6 +939,7 @@ document.addEventListener("DOMContentLoaded", function () {
"disableprefetch",
"fullscreenoptimizations",
+ "windowedoptimizations",
"mouseacc",
"gamemode",
"gamebar",
diff --git a/app/src/components/MainPage.astro b/app/src/components/MainPage.astro
index 108891b..01114e0 100644
--- a/app/src/components/MainPage.astro
+++ b/app/src/components/MainPage.astro
@@ -607,6 +607,14 @@ const languages = [
/>
+
+
+
+
diff --git a/website/src/assets/js/scripts.js b/website/src/assets/js/scripts.js
index 6d7d558..3c0ce29 100644
--- a/website/src/assets/js/scripts.js
+++ b/website/src/assets/js/scripts.js
@@ -756,6 +756,10 @@ document.addEventListener("DOMContentLoaded", function () {
"Write-Host '-- Disabling Fullscreen Optimizations' -ForegroundColor Green",
'reg add "HKCU\\System\\GameConfigStore" /v "GameDVR_DXGIHonorFSEWindowsCompatible" /t REG_DWORD /d 1 /f',
],
+ windowedoptimizations: [
+ "Write-Host '-- Disabling Optimizations for Windowed Games' -ForegroundColor Green",
+ 'reg add "HKCU\\Software\\Microsoft\\DirectX\\UserGpuPreferences" /v "DirectXUserGlobalSettings" /t REG_SZ /d "SwapEffectUpgradeEnable=0;" /f',
+ ],
mouseacc: [
"Write-Host '-- Disabling Mouse Acceleration' -ForegroundColor Green",
'reg add "HKCU\\Control Panel\\Mouse" /v "MouseSpeed" /t REG_SZ /d "0" /f',
@@ -935,6 +939,7 @@ document.addEventListener("DOMContentLoaded", function () {
"disableprefetch",
"fullscreenoptimizations",
+ "windowedoptimizations",
"mouseacc",
"gamemode",
"gamebar",
diff --git a/website/src/components/MainPage.astro b/website/src/components/MainPage.astro
index b1af042..c144da6 100644
--- a/website/src/components/MainPage.astro
+++ b/website/src/components/MainPage.astro
@@ -568,6 +568,14 @@ const languages = [
/>
+
+