bevy icon indicating copy to clipboard operation
bevy copied to clipboard

Bevy 0.14 adds some very expensive debug assertions somewhere

Open SludgePhD opened this issue 1 year ago • 0 comments

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:

[profile.dev.package."*"]
opt-level = 3

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.

SludgePhD avatar Jul 12 '24 17:07 SludgePhD