ppy / osu-framework

A game framework written with osu! in mind.
MIT License
1.67k stars 420 forks source link

Consider using `WS_EX_NOREDIRECTIONBITMAP` #6230

Open smoogipoo opened 8 months ago

smoogipoo commented 8 months ago

As mentioned in https://learn.microsoft.com/en-us/archive/msdn-magazine/2014/june/windows-with-c-high-performance-window-layering-using-the-windows-composition-engine, using WS_EX_NOREDIRECTIONBITMAP eliminates some GPU->GPU or GPU->CPU copies.

Tasks:

Usages in the wild: https://grep.app/search?q=WS_EX_NOREDIRECTIONBITMAP

Susko3 commented 8 months ago

Better to upstream and wait for SDL3, it's releasing soon so the API will be stabilised. I've also been working on getting "SDL3-CS" bindings automatically generated.