henninglive / boids-rs Goto Github PK
View Code? Open in Web Editor NEWBoids Flocking Simulation implemented in Rust using the Amethyst game engine
License: MIT License
Boids Flocking Simulation implemented in Rust using the Amethyst game engine
License: MIT License
Hi, due to rust-lang/rust#49799, one of your dependencies will no longer build. From looking at your
Cargo.toml, we recommend you upgrade to
nalgebra version 0.14.4 or later. Thanks for your attention!
Following issue/1 "Fixed by upgrading to Amethyst version 0.15.3 and Nalgebra version 0.19.0."
pulled d3d566b and cargo build
downloaded and compiled 2 Gig of crates! [Rust disk-space hungry!]
$ time cargo run
<snip>
Compiling amethyst v0.15.3
Compiling fluent-bundle v0.11.0
Compiling image v0.21.3
Compiling image v0.22.5
Compiling image v0.23.14
Compiling smithay-client-toolkit v0.4.6
<snip>
Running `target/debug/boids`
[INFO][amethyst::app] Initializing Amethyst...
[INFO][amethyst::app] Version: 0.15.3
[INFO][amethyst::app] Platform: x86_64-unknown-linux-gnu
[INFO][amethyst::app] Amethyst git commit: UNKNOWN
[INFO][amethyst::app] Rustc version: 1.47.0 Stable
[INFO][amethyst::app] Rustc git commit: 18bf6b4f01a6feaf7259ba7cdae58031af1b7b39
[INFO][winit::platform::platform::x11::window] Guessed window DPI factor: 1.0833333333333333
[WARN][gfx_backend_vulkan] Unable to find extension: VK_KHR_surface
[WARN][gfx_backend_vulkan] Unable to find extension: VK_KHR_xlib_surface
[WARN][gfx_backend_vulkan] Unable to find extension: VK_KHR_xcb_surface
[WARN][gfx_backend_vulkan] Unable to find extension: VK_KHR_wayland_surface
[WARN][gfx_backend_vulkan] Unable to find layer: VK_LAYER_LUNARG_standard_validation
[WARN][gfx_backend_vulkan] Unable to create Vulkan instance: VkError(ERROR_INCOMPATIBLE_DRIVER)
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Unsupported', ~/.cargo/registry/src/github.com-1ecc6299db9ec823/gfx-backend-vulkan-0.3.3/src/lib.rs:326:41
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
real 0m6.397s
-------------------------------------------------------------------------------
$ time RUST_BACKTRACE=1 cargo run --release
Finished release [optimized] target(s) in 0.16s
Running `target/release/boids`
[INFO][amethyst::app] Initializing Amethyst...
[INFO][amethyst::app] Version: 0.15.3
[INFO][amethyst::app] Platform: x86_64-unknown-linux-gnu
[INFO][amethyst::app] Amethyst git commit: UNKNOWN
[INFO][amethyst::app] Rustc version: 1.47.0 Stable
[INFO][amethyst::app] Rustc git commit: 18bf6b4f01a6feaf7259ba7cdae58031af1b7b39
[INFO][winit::platform::platform::x11::window] Guessed window DPI factor: 1.0833333333333333
[WARN][gfx_backend_vulkan] Unable to find extension: VK_KHR_surface
[WARN][gfx_backend_vulkan] Unable to find extension: VK_KHR_xlib_surface
[WARN][gfx_backend_vulkan] Unable to find extension: VK_KHR_xcb_surface
[WARN][gfx_backend_vulkan] Unable to find extension: VK_KHR_wayland_surface
[WARN][gfx_backend_vulkan] Unable to create Vulkan instance: VkError(ERROR_INCOMPATIBLE_DRIVER)
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Unsupported', ~/.cargo/registry/src/github.com-1ecc6299db9ec823/gfx-backend-vulkan-0.3.3/src/lib.rs:326:41
stack backtrace:
0: rust_begin_unwind
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:475
1: core::panicking::panic_fmt
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/panicking.rs:85
2: core::option::expect_none_failed
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/option.rs:1221
3: gfx_backend_vulkan::Instance::create
4: <amethyst_rendy::system::RenderingSystem<B,G> as shred::system::RunNow>::setup
5: <shred::dispatch::dispatcher::Dispatcher as shred::system::RunNow>::setup
6: amethyst::game_data::GameDataBuilder::build_dispatcher
7: <amethyst::game_data::GameDataBuilder as amethyst::game_data::DataInit<amethyst::game_data::GameData>>::build
8: amethyst::app::CoreApplication<T,E,R>::new
9: boids::main
real 8m53.310s
user 33m45.506s
sys 0m33.951s
This is on debian 10:
$ uname -a
Linux laptop 4.12.0-1-amd64 #1 SMP Debian 4.12.6-1 (2017-08-12) x86_64 GNU/Linux
$ rustc --version
rustc 1.53.0-nightly (07e0e2ec2 2021-03-24)
$ cargo --version
cargo 1.52.0-nightly (90691f2bf 2021-03-16)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.