-
Notifications
You must be signed in to change notification settings - Fork 34
Update bevy, hecs, legion, specs and shipyard #30
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
use bevy_ecs::prelude::*; | ||
use cgmath::*; | ||
|
||
#[derive(Copy, Clone)] | ||
#[derive(Copy, Clone, bevy_ecs::component::Component)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For an insertion-focused test, I would suggest using Bevy's sparse set storage rather than the default table storage. Ideally there'd be benches for both, but that may be hard to display. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For using Sparse Set storage you would add a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Having bench only for SparseSet based storage wouldn't be fair. Having both would be perfect. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, I'm on board there. I'd love to see both storage types for iteration and insertion speed. |
||
struct Transform(Matrix4<f32>); | ||
|
||
#[derive(Copy, Clone)] | ||
#[derive(Copy, Clone, bevy_ecs::component::Component)] | ||
struct Position(Vector3<f32>); | ||
|
||
#[derive(Copy, Clone)] | ||
#[derive(Copy, Clone, bevy_ecs::component::Component)] | ||
struct Rotation(Vector3<f32>); | ||
|
||
#[derive(Copy, Clone)] | ||
#[derive(Copy, Clone, bevy_ecs::component::Component)] | ||
struct Velocity(Vector3<f32>); | ||
|
||
pub struct Benchmark; | ||
|
Uh oh!
There was an error while loading. Please reload this page.