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 call wgpu::Device::poll on the web #1626

Merged
merged 2 commits into from
Mar 20, 2023

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Mar 20, 2023

Reasons detailed in the comment. Polling is broken on timeout (see gfx-rs/wgpu#3601) and timeout on WebGL is hardcoded to zero because of other issues.
Since dropping (cpu user code discarded) in-gpu-use frames doesn't have any repercussions for GL resources, this doesn't change much, but makes overall behavior more consistent and less confusing & error prone.

Discovered while working on #909

Checklist

Reasons detailed in the comment. Polling is broken on timeout (see  gfx-rs/wgpu#3601) and timeout on WebGL is hardcoded to zero because of other issues.
@Wumpf Wumpf added 🕸️ web regarding running the viewer in a browser 🔺 re_renderer affects re_renderer itself labels Mar 20, 2023
Copy link
Member

@emilk emilk left a comment

Choose a reason for hiding this comment

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

LGTM if tested :]

crates/re_renderer/src/context.rs Outdated Show resolved Hide resolved
@Wumpf Wumpf merged commit 86d0f10 into main Mar 20, 2023
@Wumpf Wumpf deleted the andreas/re_renderer/dont-poll-on-web branch March 20, 2023 19:10
@emilk emilk changed the title Don't call wgpu::Device::poll on the web. Don't call wgpu::Device::poll on the web Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔺 re_renderer affects re_renderer itself 🕸️ web regarding running the viewer in a browser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants