| Summary: | Vulkan Window Slow to Show | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Diego <diegoacevedo91> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | ASSIGNED --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | icculus |
| Version: | 2.0.9 | ||
| Hardware: | x86_64 | ||
| OS: | Mac OS X (All) | ||
|
Description
Diego
2018-12-01 20:14:35 UTC
I haven't looked into this further than throwing some SDL_GetTicks() calls in there, but the reason this happens is the vkWaitForFences() call, which blocks about 16 milliseconds normally (for vsync?), but in the background waits 1500 milliseconds. I _presume_ this is a MoltenVK bug (or possibly intentional feature...?) and that the MoltenVK demos just don't wait on a fence. I'll look a little further, but I don't think this is an SDL bug at the moment. --ryan. Thanks for taking a look! It could be a MoltenVK bug but that wasn't my initial feeling. The LunarG/MoltenVk demo cube.c does use fences and vsync. I can't get my SDL window to show promptly from the background whether or not I'm using vsync, or using fences or just waiting for queue idle. https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/blob/master/demos/cube.c |