-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
4k texture model loading is way to slow. #1947
Comments
See #1307 for your last request :) |
Have you tried running in release mode? The You can also set up your project so that cargo builds your dependencies in release mode. I'm on mobile, so it's hard to check, but I think it's in [profile.dev.package.*]
opt-level = 3 |
yeah, you are right. in release mode it is fast enough.
[dependencies]
bevy = "0.5.0"
[profile.dev.package.bevy]
opt-level = 3
|
Dependencies are built with whatever profile applies to them. In this case, you have asked exactly the bevy crate to be built in release mode, which will have no effect, because the Bevy locates assets based on the cargo workspace root, environment environment variable with a fallback to the current executable location. This is implemented here: bevy/crates/bevy_asset/src/io/file_asset_io.rs Lines 29 to 41 in 20673db
To use a bevy program in a different folder, you should set the |
I'm going to close this for now, but feel free to ask for any more assistance that you need, either here, in the Discussions or on Discord @HyeokSuLee <3 Asset loading speed will continue to be improved, but I think the issue is resolved for now thanks to release mode. |
It took over 1 minute as gltf extension.
Is there some solution for pre load?
Or command to load and check when loading is complete.
The text was updated successfully, but these errors were encountered: