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

Timeout errors on every frame when rendering blue screen #195

Closed
eulertour opened this issue Jun 26, 2021 · 4 comments
Closed

Timeout errors on every frame when rendering blue screen #195

eulertour opened this issue Jun 26, 2021 · 4 comments

Comments

@eulertour
Copy link

At the point in https://sotrh.github.io/learn-wgpu/beginner/tutorial2-swapchain/#render where the code renders a blue screen the code runs and displays the screen successfully but each frame also emits a Timeout error. I verified the same result when running the code at https://github.com/sotrh/learn-wgpu/blob/master/code/beginner/tutorial2-swapchain/src/main.rs to to draw a triangle. Is this expected or is there some way to fix it?

@eulertour
Copy link
Author

In case it's related I also found that the example animation at https://github.com/sotrh/learn-wgpu/tree/master/code/intermediate/tutorial12-camera runs at a very high frame rate and the example with controls at https://github.com/sotrh/learn-wgpu/tree/master/code/beginner/tutorial7-instancing reads inputs so quickly that it's hard to move around the scene.

@eulertour
Copy link
Author

After doing some more digging I've found that timeout errors aren't emitted on every frame, just that there's 1 call to state.render() that executes successfully for every ~350 calls that result in a timeout error. So my questions are
Is this expected behavior?
Is there a recommended way to handle this (my first thought is to just silence timeout errors, which doesn't seem right)?
Is the high frame rate related?
Is there a way to ensure a fixed frame rate regardless of hardware?

@sotrh
Copy link
Owner

sotrh commented Jun 27, 2021

I'll need to do some research on this.

@sotrh
Copy link
Owner

sotrh commented Nov 14, 2021

Are you still running into issues on the latest version of wgpu?

@sotrh sotrh closed this as completed Mar 25, 2023
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