Skip to content

context.getCurrentTextureView() blocks when window is obscured #4

@mreinstein

Description

@mreinstein

@kmamal when the sdl + gpu window is completely obscured (not minimized), calling context.getCurrentTextureView() is blocking or takes a really long time (> 1 second where normally it's very quick).

This really wreaks havoc on my main loop because the thread screeches to a halt. Is there any way to fix this? Or barring that, detect when the sdl window is not showing? window.visible doesn't change it's value if the sdl window is not minimized but fully covered by other windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions