A 2D tiled game, with Bevy
Linux: https://github.com/bevyengine/bevy/blob/main/docs/linux_dependencies.md
Windows: Make sure to install VS2019 build tools
MacOS: No dependencies here
LLD linker: The Rust compiler spends a lot of time in the "link" step. LLD is much faster at linking than the default Rust linker. To install LLD, find your OS below and run the given command:
Ubuntu: sudo apt-get install lld
Arch: sudo pacman -S lld
Windows: Ensure you have the latest cargo-binutils
cargo install -f cargo-binutils
rustup component add llvm-tools-preview
MacOS: Modern LLD does not yet support MacOS, but we can use zld instead: brew install michaeleisel/zld/zld
Nightly Rust Compiler: This gives access to the latest performance improvements and "unstable" optimizations
- Install the nightly toolchain:
rustup toolchain install nightly
- Configure your current project to use nightly (run this command within the project):
rustup override set nightly
- OR configure cargo to use nightly for all projects -- switch back with
rustup default stable
:
rustup default nightly
cargo run
# Start in release mod. witch drasticly improve performance
cargo run --release