dotnet / Silk.NET

The high-speed OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, WebGPU, and DirectX bindings library your mother warned you about.
https://dotnet.github.io/Silk.NET
MIT License
3.89k stars 378 forks source link

Silk.Net 2.21 window is stuck after minimizing #2240

Open Arugin opened 5 days ago

Arugin commented 5 days ago

Summary

Window is stuck right after minimizing. Everything works as expected in 2.20

Steps to reproduce

  1. Get the sample https://github.com/dotnet/Silk.NET/tree/main/src/Lab/Experiments/ImGuiVulkan
  2. Update to SIlk.Net 2.21
  3. Run the sample
  4. Minimize the window
  5. Now it stuck and won't expand back

Comments

If you set the version of Silk.Net and all other libraries to 2.20 everything works as expected.

Probably releated to recent changes of resize?

qian-o commented 3 days ago

I have encountered this problem before, where I got stuck in an infinite loop while refactoring the swap chain. This may be related to thread scheduling.