Untitled
unknown
plain_text
2 years ago
2.6 kB
9
Indexable
Hi, if I change like 1 little thing in my code and run it, it takes around 10s to build it or something. Do you have the same? If I have it like this:
```
fn mouse_button_input (
buttons: Res<Input<MouseButton>>,
mycoords: Res<MyWorldCoords>,
toggle_bool: Res<ToggleBool>,
mut money: ResMut<Money>,
mut print: ResMut<PrintsStruct>,
) {
```
and build it, and dont change something it runs in like half a second:
```
PS F:\Github\Clicker-Game\clicker_game> cargo build
Compiling clicker_game v0.1.0 (F:\Github\Clicker-Game\clicker_game)
Finished dev [unoptimized + debuginfo] target(s) in 9.45s
PS F:\Github\Clicker-Game\clicker_game> cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.54s
Running `target\debug\clicker_game.exe`
2023-11-22T14:49:51.494703Z INFO bevy_winit::system: Creating new window "Clicker Game Version 1.0!" (0v0)
2023-11-22T14:49:51.987420Z INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce RTX 2060", vendor: 4318, device: 7817, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "546.17", backend: Vulkan }
2023-11-22T14:49:52.980736Z INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Windows 10 Home", kernel: "19045", cpu: "AMD Ryzen 5 2600 Six-Core Processor", core_count: "6", memory: "16.0 GiB" }
Game Starts, Have Fun!
```
but if I add a space:
```
fn mouse_button_input (
buttons: Res<Input<MouseButton>>,
mycoords: Res<MyWorldCoords>,
toggle_bool: Res<ToggleBool>,
mut money: ResMut<Money>,
mut print: ResMut<PrintsStruct>,
) {
```
and run it again:
```
PS F:\Github\Clicker-Game\clicker_game> cargo run
Compiling clicker_game v0.1.0 (F:\Github\Clicker-Game\clicker_game)
Finished dev [unoptimized + debuginfo] target(s) in 9.63s
Running `target\debug\clicker_game.exe`
2023-11-22T14:51:42.444733Z INFO bevy_winit::system: Creating new window "Clicker Game Version 1.0!" (0v0)
2023-11-22T14:51:42.949033Z INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce RTX 2060", vendor: 4318, device: 7817, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "546.17", backend: Vulkan }
2023-11-22T14:51:43.934716Z INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Windows 10 Home", kernel: "19045", cpu: "AMD Ryzen 5 2600 Six-Core Processor", core_count: "6", memory: "16.0 GiB" }
Game Starts, Have Fun!
```
and I only have 1 script with like 200 lines of code and this is the same with less code. Is that normal?Editor is loading...
Leave a Comment