Skip to content

Consider using WS_EX_NOREDIRECTIONBITMAP #6230

Open
@smoogipoo

Description

@smoogipoo

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:

  • Add the WS_EX style to SDL. It looks like SDL2 doesn't use CreateWindowEx, but SDL3 does, so it might be easier to wait for SDL3 rather than try to upstream WS_EX styles into SDL2.
  • Potentially change Veldrid to use FlipSequential. The article mentions only this presentation mode is supported, but will have to check on the effect of this.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions