libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
9.62k stars 1.78k forks source link

Entire device display freezes when resizing [Windows 11] #10195

Closed HotNoggin closed 2 months ago

HotNoggin commented 3 months ago

When the window is resized, the display (the ENTIRE display, not just the SDL window) freezes for a moment before returning to normal. This issue only occurs when resizing (not with dragging). The issue mysteriously vanishes when certain applications are open at the same time, including Windows Snipping Tool (both while recording and while open but not recording) and Godot applications, but not applications like Chrome, Discord, GitHub Desktop, or Visual Studio.

This issue occurs when using SDL_RenderPresent() each frame, even without any other renderer operations. This is why I believe it's a bug with SDL and not an issue in the C++ project's code (but feel free to check the repo).

Device specifications: Processor: AMD Ryzen 9 6900HS with Radeon Graphics 3.30 GHz 64-bit operating system, x64-based processor Windows 11 Home (version 23H2)

(Duplicate of this issue from the actual application repository).

Squall-Leonhart commented 2 months ago

I believe this is a bug in your display driver that AMD is already aware of.

Can you turn off Hardware Accelerated Graphics Scheduling (HAGS) if it is on to disable Windows 11's hardware flip queue.