ElliotB256

Results 84 comments of ElliotB256

https://teamatomecs.github.io/AtomECSDemos/aion_source.html

It's a good point! I will check this when back from holiday. We would still want to define our own Shape trait, but possibly implement the trait on these primitives....

I made a comparison of some benchmark simulations. * 10,000 atoms, 5000 steps. * The bevy branch takes 14,173 ms (average of three runs). * The specs (master) branch takes...

Bevy 0.8 came out a few days ago so I've ported the bevy branch to it. I see a slight performance improvement on the benchmark: ## bevy 0.7 ``` 15361ms...

Re-running bevy 0.8 on my home machine: # bevy 0.8 (10k atoms, 5k steps) ``` Simulation loop completed in 28085 ms. Simulation loop completed in 28283 ms. Simulation loop completed...

Retesting for bevy 0.10 comparisons # bevy 0.8 ``` Simulation loop completed in 28476 ms. Simulation loop completed in 28009 ms. Simulation loop completed in 27892 ms. ``` # bevy...

Let's compare some rough metrics between bevy 0.8 and 0.10: # bevy 0.8 ![image](https://user-images.githubusercontent.com/7041164/223875446-84a830bb-5426-4534-b285-c681363e6c41.png) ![image](https://user-images.githubusercontent.com/7041164/223875495-71472612-2ea6-4a38-9a8f-4f10426bb3f0.png) ![image](https://user-images.githubusercontent.com/7041164/223876318-d336e9e2-89f7-471c-bfe5-86a969ded7f8.png) # bevy 0.10 ![image](https://user-images.githubusercontent.com/7041164/223876094-6c2fa41b-fc2a-4b2a-857b-8059a903bfb7.png) ![image](https://user-images.githubusercontent.com/7041164/223876144-b194b23b-57b4-4f0c-836a-5bfe33416f00.png) ![image](https://user-images.githubusercontent.com/7041164/223876231-558e5637-f41a-4321-ae8c-decb6ac30d5c.png) So it seems 0.10 has a core sitting...

``` app.add_plugins(DefaultPlugins.set(TaskPoolPlugin { task_pool_options: TaskPoolOptions::with_num_threads(5), })); ``` The above prevents one of the cores being idled by the compute thread, so now 3/4 cores on my machine are working. It...

After tweaking until I get 4 compute threads, I get: ``` Simulation loop completed in 23875 ms. ``` which is faster than bevy 0.8! (I suspect bevy 0.8 never used...

One of the nice things in bevy 0.10 is the ability to automatically determine batch sized based on a heuristic. Let's see how it handles: | test | 1st |...