Commit 876a7d7
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-8e97163e72f01 parent fe65574 commit 876a7d7
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
0 commit comments