Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application unresponsive under Linux without vkQueueWaitIdle call #55

Closed
stephane-13 opened this issue Jun 6, 2019 · 5 comments
Closed

Comments

@stephane-13
Copy link

When I run the program under Linux, the window is unresponsive and the whole screen is freezing intermittently.
Adding an extra call to vkQueueWaitIdle( presentation_queue ) at the end of the draw_frame() function solves the issue.
Is that something expected?

@realitix
Copy link
Owner

realitix commented Jun 7, 2019

Hello,

What program are you running ?

@stephane-13
Copy link
Author

I'm running example/example_sdl2.py.
I think my issue is due to vsync being enabled (enforced) at the driver level.
The program, without vkQueueWaitIdle calls, hammers the rendering pipeline too fast.

@realitix
Copy link
Owner

Ok @stephane-13.
Did you find a way to fix this ?

If not, I will update the test with a Wait for each loop.

@stephane-13
Copy link
Author

Yes, as I mentioned above, I had to add a call to vkQueueWaitIdle at the end of the draw_frame() function to limit the number of frames submitted to the rendering pipeline.

I assume that when vsync is enabled, the frames are sent too quickly (i.e. faster than 60Hz in my case) and the vkQueueWaitIdle call ensures that the previous frame has been processed before sending the next one.

@realitix
Copy link
Owner

I fixed it.
When I add the wait, I move from 6000FPS to 5000FPS but for this test it's not a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants