Skip to content

Commit 876a7d7

Browse files
sailroCopilot
andcommitted
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
1 parent fe65574 commit 876a7d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

GeneralsMD/Code/GameEngine/Include/GameNetwork/GeneralsOnline/NextGenMP_defines.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static int FRAME_GROUPING_CAP = 64;
121121

122122
#define GENERALS_ONLINE_IBRA_STARTING_POS_LOGIC 1
123123

124-
//#define GENERALS_ONLINE_WINDOWED_FULLSCREEN 1
124+
#define GENERALS_ONLINE_WINDOWED_FULLSCREEN 1
125125

126126
//#define GENERALS_ONLINE_USE_NEW_RNG_LOGIC 1
127127
//#define GENERALS_ONLINE_RNG_USE_PER_FRAME_VAL 1

0 commit comments

Comments
 (0)