From 876a7d76ea0411763175bdfa4751bcaac8bbe69e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lebreton?= Date: Sun, 2 Aug 2026 16:54:00 +0200 Subject: [PATCH] fix(render): Restore windowed fullscreen to prevent device loss Exclusive fullscreen can remain in D3DERR_DEVICELOST for roughly 45 seconds after startup on Windows 11 with NVIDIA GPUs. During that time, DX8Wrapper::End_Scene sleeps for 200 ms per frame and rendering drops to about 5 FPS. Restore the existing GeneralsOnline windowed-fullscreen path. It keeps the fullscreen appearance while creating a windowed D3D device, which avoids the lost-device state and remains stable at the configured frame rate. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6fc47f85-1023-4457-9df0-8e97163e72f0 --- .../Include/GameNetwork/GeneralsOnline/NextGenMP_defines.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GeneralsMD/Code/GameEngine/Include/GameNetwork/GeneralsOnline/NextGenMP_defines.h b/GeneralsMD/Code/GameEngine/Include/GameNetwork/GeneralsOnline/NextGenMP_defines.h index bd832b40886..eeb3cec60b6 100644 --- a/GeneralsMD/Code/GameEngine/Include/GameNetwork/GeneralsOnline/NextGenMP_defines.h +++ b/GeneralsMD/Code/GameEngine/Include/GameNetwork/GeneralsOnline/NextGenMP_defines.h @@ -121,7 +121,7 @@ static int FRAME_GROUPING_CAP = 64; #define GENERALS_ONLINE_IBRA_STARTING_POS_LOGIC 1 -//#define GENERALS_ONLINE_WINDOWED_FULLSCREEN 1 +#define GENERALS_ONLINE_WINDOWED_FULLSCREEN 1 //#define GENERALS_ONLINE_USE_NEW_RNG_LOGIC 1 //#define GENERALS_ONLINE_RNG_USE_PER_FRAME_VAL 1