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

Don't reset query pool twice #207

Merged
merged 1 commit into from
Nov 22, 2022
Merged

Don't reset query pool twice #207

merged 1 commit into from
Nov 22, 2022

Conversation

raphlinus
Copy link
Contributor

When invoked in non robust memory mode (ie not using RenderDriver), both the render_coarse and render_fine calls reset the query pool, which in turn causes the fetch of the query pool to hang (in Vulkan).

This is not an issue in robust memory mode because there are two different query pools, and both should indeed be reset.

This patch makes the second reset conditional on the query pool being fresh.

Fixes an observed hang with the xilem prototype on Windows.

When invoked in non robust memory mode (ie not using RenderDriver), both
the render_coarse and render_fine calls reset the query pool, which in
turn causes the fetch of the query pool to hang (in Vulkan).

This is not an issue in robust memory mode because there are two
different query pools, and both should indeed be reset.

This patch makes the second reset conditional on the query pool being
fresh.

Fixes an observed hang with the xilem prototype on Windows.
Copy link
Collaborator

@dfrg dfrg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surprised we didn’t catch this earlier. The shello example should probably be changed to use RenderDriver anyway. I suppose piet-wgsl will make this moot soon.

@raphlinus raphlinus merged commit 98e0499 into dev Nov 22, 2022
@raphlinus raphlinus deleted the fix_query_pools branch November 22, 2022 16:50
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

Successfully merging this pull request may close these issues.

2 participants