Comments (5)
I have been cross compiling for awhile and the startup time when launching for the first time after build does take a very long time. But launching for the second time for the same build is instantaneous. I have no clue why that is the case.
from bevy-cheatbook.
I experienced the same when I was cross compiling. I suspect it's windows caching the file in RAM which causes subsequent launches to be effectively instantaneous. Not very helpful when you're iterating quickly though lol.
from bevy-cheatbook.
How should Rust-Analyzer be configured?
I've setup a project-scoped .cargo/config.toml
in WSL that has the config:
[build]
target-dir = "C:\\Users\\USER\\bevy_builds"
My WSL Rust-Analyzer just straight up create a directory in my project with the name 'C:\Users\USER\bevy_builds'
There's also this issue. I have my project directory that stays in C:\...
and symlinked to my WSL which causes cargo config issue. Seems like I may need to restructure my stuff.
from bevy-cheatbook.
Your .cargo/config.toml
that sets the build.target_dir
needs to be on the windows side at C:\Users\NAME\.cargo\config.toml
, not the WSL2 side.
Also, my setup assumes your project lives in WSL2's linux filesystem, not your windows filesystem. I'm not sure how it would behave with the setup you've described where your project lives in your windows filesystem with it symlinked to your WSL2 linux filesystem.
With my setup, rust-analyzer has needed no extra configuration from the norm. It does native linux builds for checking and stores that in my project dir in target/
.
from bevy-cheatbook.
I've restructured my projects directory for a bit. Having 2 builds for both Windows and Linux will probably took a bit of space but worth the trade-off. Anyways this works beautifully. Thanks for the tutorial!
from bevy-cheatbook.
Related Issues (20)
- 3D Pan+Orbit Camera example in cookbook does not work with 0.12
- Broken link in the Resources section of the List of Bevy Builtins page
- AppState getting HOT 1
- Add description of how to deploy to web with WebGPU on the wasm page.
- Plugins guidelines link HOT 1
- Update `DefaultPlugins` documentation link HOT 1
- Remove stale information re: `State` resource change detection
- Compiler will infer incorrect life time for system param in system closure with inferred type
- add `WindowOccluded` builtin event (was added in 0.13)
- Pattern: Transform sync from custom components
- programming/system-piping: Show that regular system params can be accepted alongside input
- How to run a system X duration after a state change
- Feature "filesystem_watcher" instead of "file_watcher" in section "Bevy Cargo Features"
- [programming/events] include the need to register your system
- Convert cursor to world 2D coordinates with custom viewport physical position
- don't shorten asset_server to ass HOT 1
- Updated snippet for "pan + rotation page"
- Page on keyboard input needs to have `Input` renamed to `ButtonInput`
- Change "Input" to "ButtonInput" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bevy-cheatbook.