Giter Site home page Giter Site logo

rust-ants-colony-simulation's Issues

Feature request: Variable speeds

I've noticed that the ants seem to be moving at a constant speed and seem to turn at a constant speed too. Is that right? I think that might be what's preventing the trail from simplifying more quickly.

I'm not sure how ants do it in real life, so feel free to close this if it's not realistic

engine api error

cargo run --release
Finished release profile [optimized] target(s) in 0.26s
Running target/release/ants
2024-07-08T04:11:58.464078Z INFO bevy_render::renderer: AdapterInfo { name: "Apple M3", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
2024-07-08T04:11:58.472203Z INFO bevy_winit::system: Creating new window "Ants" (0v0)
2024-07-08T04:11:58.501893Z INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "MacOS 14.5 ", kernel: "23.5.0", cpu: "Apple M3", core_count: "8", memory: "24.0 GiB" }
2024-07-08 12:11:58.542 ants[62456:32927782] CAMetalLayer ignoring invalid setDrawableSize width=4294967295.000000 height=4294967295.000000
2024-07-08T04:11:58.542755Z ERROR wgpu::backend::direct: Handling wgpu errors as fatal by default
thread 'Compute Task Pool (3)' panicked at /Users/a1-6/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.16.3/src/backend/direct.rs:3019:5:
wgpu error: Validation Error

Caused by:
In Device::create_texture
note: label = main_texture_a
Dimension X value 4294967295 exceeds the limit of 16384

note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Encountered a panic in system bevy_render::view::prepare_view_targets!
thread 'Compute Task Pool (1)' panicked at /Users/a1-6/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.11.0/src/pipelined_rendering.rs:135:45:
called Result::unwrap() on an Err value: RecvError
a1-6@1-6deMacBook-Air ~/Desktop/gcl/rust-ants-colony-simulation main [101] @ cargo run --release RUST_BACKTRAC
E=1
Finished release profile [optimized] target(s) in 0.11s
Running target/release/ants RUST_BACKTRACE=1
2024-07-08T04:12:16.913638Z INFO bevy_render::renderer: AdapterInfo { name: "Apple M3", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
2024-07-08T04:12:16.921830Z INFO bevy_winit::system: Creating new window "Ants" (0v0)
2024-07-08T04:12:16.952075Z INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "MacOS 14.5 ", kernel: "23.5.0", cpu: "Apple M3", core_count: "8", memory: "24.0 GiB" }
2024-07-08 12:12:16.990 ants[62508:32928318] CAMetalLayer ignoring invalid setDrawableSize width=4294967295.000000 height=4294967295.000000
2024-07-08T04:12:16.990827Z ERROR wgpu::backend::direct: Handling wgpu errors as fatal by default
thread 'Compute Task Pool (0)' panicked at /Users/a1-6/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.16.3/src/backend/direct.rs:3019:5:
wgpu error: Validation Error

Caused by:
In Device::create_texture
note: label = main_texture_a
Dimension X value 4294967295 exceeds the limit of 16384

note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Encountered a panic in system bevy_render::view::prepare_view_targets!
thread 'main' panicked at /Users/a1-6/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.11.0/src/pipelined_rendering.rs:135:45:
called Result::unwrap() on an Err value: RecvError

Runtime error on wayland

Hi,

I get the following error when I attempt to run on my machine:

     Running `target/debug/ants`
2023-08-01T15:29:31.665830Z  INFO bevy_winit::system: Creating new window "Ants" (0v0)
2023-08-01T15:29:31.665989Z  INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1
2023-08-01T15:29:31.764582Z  INFO bevy_render::renderer: AdapterInfo { name: "Mesa Intel(R) Graphics (ADL GT2)", vendor: 32902, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Gl }
2023-08-01T15:29:31.780572Z  WARN bevy_pbr::ssao: ScreenSpaceAmbientOcclusionPlugin not loaded. GPU lacks support: TextureFormat::R16Float does not support TextureUsages::STORAGE_BINDING.
2023-08-01T15:29:31.782272Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux rolling EndeavourOS", kernel: "6.4.7-arch1-1", cpu: "12th Gen Intel(R) Core(TM) i7-1280P", core_count: "14", memory: "62.5 GiB" }
2023-08-01T15:29:31.808893Z ERROR wgpu_core::device: surface configuration failed: incompatible window kind
thread 'main' panicked at 'Error in Surface::configure: Validation Error

Caused by:
    Invalid surface
', /home/vasily/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.16.3/src/backend/direct.rs:734:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_render::view::window::prepare_windows`!
thread 'Compute Task Pool (4)' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', /home/vasily/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.11.0/src/pipelined_rendering.rs:135:45

Machine info:

OS: EndeavourOS Linux x86_64
Kernel: 6.4.7-arch1-1
DE: Hyprland

Steps to reproduce:

git clone [email protected]:bones-ai/rust-ants-colony-simulation.git
cd rust-ants-colony-simulation
cargo run

I would like to make a PR with some optimizations, but I am unable to benchmark the optimizations due to the aforementioned error. Please let me know if you need any additional information.

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.