-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Bevy 0.14 adds some very expensive debug assertions somewhere #14291
Comments
We should fix this :) Bisecting or a minimal reproduction are the most useful next steps here. |
According to gfx-rs/wgpu#5756, this looks to have been introduced in the |
@SludgePhD does the following line fix the issue? [profile.dev.package.wgpu-types]
debug-assertions = false |
I noticed the same problem on my end, and applying @janhohenheim suggestion makes a massive difference (~60 FPS without it, ~460 FPS with it). |
Yes, that fixes the issue |
@cwfitzgerald just reopened the linked issue (thanks!) |
Bevy version
0.14.0
What you did
In bevy 0.13, my application runs at 60 FPS in a debug build with a Cargo profile override like this:
In bevy 0.14, the same application struggles to hit 20 FPS with the same build configuration. Adding
debug-assertions = false
to the build config brings the lost performance back.What went wrong
While debug assertions are often useful, these seem a bit too heavy to justify their inclusion (especially given that even all the checked arithmetic in the whole dependency tree doesn't destroy performance this badly).
This may be caused by wgpu, I have not investigated this issue.
The text was updated successfully, but these errors were encountered: