microsoft / Windows-classic-samples

This repo contains samples that demonstrate the API used in Windows classic desktop applications.
Other
5.09k stars 3.23k forks source link

The example of DisplayCoreCustomCompositor will get stuck in the ExecuteTask function when running. #367

Open Jasonwky opened 1 month ago

Jasonwky commented 1 month ago

When using the example of DisplayCoreCustomCompositor, it was found that taskPool was being executed Does anyone know why someone gets stuck in the ExecuteTask function when executing a task? How should we solve it? https://github.com/microsoft/Windows-classic-samples/blob/main/Samples/DisplayCoreCustomCompositor/cpp/DisplayCoreCustomCompositor.cpp

Jasonwky commented 1 month ago

When using the example of DisplayCoreCustomCompositor, it was found that taskPool was being executed Does anyone know why someone gets stuck in the ExecuteTask function when executing a task? How should we solve it? https://github.com/microsoft/Windows-classic-samples/blob/main/Samples/DisplayCoreCustomCompositor/cpp/DisplayCoreCustomCompositor.cpp

Just to add, it was found that there is no problem on Win10. Turning off vertical synchronization on Win11 is not a problem, but turning on vertical synchronization will cause it to get stuck. Is this a bug in the Win11 system?