Skip to content

Fix WGPU_SETTINGS_PRIO with trace_tracy - #25298

Open
beicause wants to merge 6 commits into
bevyengine:mainfrom
beicause:default-wgpu-settings
Open

Fix WGPU_SETTINGS_PRIO with trace_tracy#25298
beicause wants to merge 6 commits into
bevyengine:mainfrom
beicause:default-wgpu-settings

Conversation

@beicause

@beicause beicause commented Aug 5, 2026

Copy link
Copy Markdown
Member

Objective

When profiling using trace_tracy and WGPU_SETTINGS_PRIO="webgpu" or "webgl2", bevy panics because timestamp query features are not enabled on the device.

Solution

Enable wgpu::Features::TIMESTAMP_QUERY | wgpu::Features::TIMESTAMP_QUERY_INSIDE_ENCODERS on the device when tracing-tracy enabled so that you can profile at webgpu/webgl2 limits.

Testing

WGPU_SETTINGS_PRIO="webgpu" cargo r --example bevymark --features trace_tracy

@alice-i-cecile alice-i-cecile added this to the 0.20 milestone Aug 5, 2026
@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen O-Web Specific to web (WASM) builds A-Diagnostics Logging, crash handling, error reporting and performance analysis X-Uncontroversial This work is generally agreed upon D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Testing Testing must be done to verify an issue or fix labels Aug 5, 2026
@github-project-automation github-project-automation Bot moved this to Needs SME Triage in Rendering Aug 5, 2026
@beicause

beicause commented Aug 5, 2026

Copy link
Copy Markdown
Member Author

Actually this is unrealted to wasm build because trace_tracy (and required wgpu features) doesn't work on web at all. This is only for conveniently using the web's limits in profiling.

@beicause beicause removed the O-Web Specific to web (WASM) builds label Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Diagnostics Logging, crash handling, error reporting and performance analysis A-Rendering Drawing game state to the screen D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Testing Testing must be done to verify an issue or fix X-Uncontroversial This work is generally agreed upon

Projects

Status: Needs SME Triage

Development

Successfully merging this pull request may close these issues.

2 participants