-
Hello I'm a novice developer trying this and that in a web environment with "bevy". In the past, I didn't really think about the time it would take to build (though that was an average of 1 to 3 minutes) However, it started to take more than six minutes to build once because the scale of trying is getting bigger and using various external plug-ins. So to reduce compilation time, I looked here and there, and I heard there are several ways on the official website, so I checked and found the following.
And i also installed "LLD linker" as explained on the homepage and added it to the Toml file as follows.
Anyway, I tried that, and the following error occurred.
As a result of the investigation, I tried it because it could work if I tried as follows. After looking into it, we found that the 0.8.0 version also had the following problems, and we tried the method presented there.
But that method didn't work either. What can I try now? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Dynamic linking doesn't work with web target. Compile time for WASM is a pretty big problem in rust. I've been annoyed by it myself, and I'm not aware of a good solution. The way I do it is by testing the desktop version and then only compile to WASM when publishing (for example, publishing on itch.io). There isn't much you need to do to make your bevy game run on WASM, so when it comes time to compile to WASM, it's not that bad if you've been only testing on native, the changes you have to make are usually easy to find and fix. |
Beta Was this translation helpful? Give feedback.
Dynamic linking doesn't work with web target.
Compile time for WASM is a pretty big problem in rust. I've been annoyed by it myself, and I'm not aware of a good solution. The way I do it is by testing the desktop version and then only compile to WASM when publishing (for example, publishing on itch.io). There isn't much you need to do to make your bevy game run on WASM, so when it comes time to compile to WASM, it's not that bad if you've been only testing on native, the changes you have to make are usually easy to find and fix.