François
b28365f966
updates on diagnostics (log + new diagnostics) ( #1085 )
...
* move print diagnostics to log
* entity count diagnostic
* asset count diagnostic
* remove useless `pub`s
* use `BTreeMap` instead of `HashMap`
* get entity count from world
* keep ordered list of diagnostics
2020-12-24 13:28:31 -06:00
Carter Anderson
3b2c6ce49b
release 0.4.0 ( #1093 )
2020-12-19 13:28:00 -06:00
Carter Anderson
caf3d8b3ef
add with_enter_stage (and other variants) ( #1091 )
2020-12-19 12:31:47 -06:00
Carter Anderson
841755aaf2
Adopt a Fetch pattern for SystemParams ( #1074 )
2020-12-15 21:57:16 -08:00
Carter Anderson
b12e3bf3bb
Improve usability of StateStage and cut down on "magic" ( #1059 )
...
Improve usability of StateStage and cut down on "magic"
2020-12-14 17:13:22 -08:00
Alec Deason
e511cdbda7
More informative error message on missing stage ( #1048 )
...
More informative error message on missing state
2020-12-13 12:12:09 -08:00
sapir
002e22fca0
Fix hang on missing state update handler ( #1051 )
2020-12-13 11:55:32 -08:00
Carter Anderson
509b138e8f
Schedule v2 ( #1021 )
...
Schedule V2
2020-12-12 18:04:42 -08:00
Lukas Orsvärn
e1b995f0b0
Add documentation for bevy::ecs::Query::removed ( #950 )
...
Add documentation for bevy::ecs::Query::removed
2020-12-07 12:41:40 -08:00
Michael Tang
ff12f69233
Document part of bevy_ecs::Commands ( #976 )
...
Document part of bevy_ecs::Commands
2020-12-02 19:11:28 -08:00
Tomasz Sterna
c346d282b6
Add Archetype TypeInfo::type_name accessor ( #985 )
2020-12-02 14:33:17 -08:00
Carter Anderson
5a77339df0
Revert "Add Archetype TypeInfo::type_name accessor ( #980 )" ( #982 )
...
This reverts commit 4833c2a7f4
.
2020-12-02 12:58:39 -08:00
Tomasz Sterna
4833c2a7f4
Add Archetype TypeInfo::type_name accessor ( #980 )
2020-12-02 12:37:40 -08:00
Joshua J. Bouw
9f4c8b1b9a
Fix errors and panics to typical Rust conventions ( #968 )
...
Fix errors and panics to typical Rust conventions
2020-12-02 11:31:16 -08:00
Carter Anderson
b5ffab7135
Renderer Optimization Round 1 ( #958 )
...
* only update global transforms when they (or their ancestors) have changed
* only update render resource nodes when they have changed (quality check plz)
* only update entity mesh specialization when mesh (or mesh component) has changed
* only update sprite size when changed
* remove stale bind groups
* fix setting size of loading sprites
* store unmatched render resource binding results
* reduce state changes
* cargo fmt + clippy
* remove cached "NoMatch" results when new bindings are added to RenderResourceBindings
* inline current_entity in world_builder
* try creating bind groups even when they havent changed
* render_resources_node: update all entities when resized
* fmt
2020-12-01 13:17:48 -08:00
Carter Anderson
8675fea0f2
consolidate find-crate ( #964 )
2020-11-30 22:36:38 -08:00
Carter Anderson
72b2fc9843
Bevy Reflection ( #926 )
...
Bevy Reflection
2020-11-27 16:39:59 -08:00
RiskLove
7d4cb70d92
BugFix: Archetype grow with defferent size. ( #930 )
...
Co-authored-by: heshuai <heshuai@163.com>
2020-11-27 11:55:55 -08:00
Carter Anderson
4fecb899aa
initialize chained systems ( #886 )
2020-11-17 17:06:47 -08:00
Carter Anderson
457a8bd17d
ecs: replace "bool" component states with bitflags ( #878 )
2020-11-17 17:04:44 -08:00
Carter Anderson
3a6f6de277
System Inputs, Outputs, Chaining, and Registration Ergo ( #876 )
...
System Inputs, Outputs, Chaining, and Registration Ergo
2020-11-16 18:18:00 -08:00
bjorn3
50c7e229b2
Rework ResourceData to use VecResourceStorage instead of Archetype ( #873 )
2020-11-16 16:55:59 -08:00
Carter Anderson
7628f4a64e
combine bevy_ecs and bevy_hecs crates. rename XComponents to XBundle ( #863 )
...
combine bevy_ecs and bevy_hecs crates. rename XComponents to XBundle
2020-11-15 20:32:23 -08:00
François
02f543eca3
Fall back to remove components one by one when failing to remove a bundle ( #719 )
...
Fall back to remove components one by one when failing to remove a bundle
2020-11-15 14:32:54 -08:00
memoryruins
4bdff66b80
Check for conflicting system resource parameters ( #864 )
2020-11-15 12:42:43 -08:00
Carter Anderson
e03f17ba7f
Log Plugin ( #836 )
...
add bevy_log plugin
2020-11-12 17:23:57 -08:00
Carter Anderson
e769974d6a
query filters ( #834 )
2020-11-10 20:48:34 -08:00
Robert Swain
a266578992
Add tracing spans to schedules, stages, systems ( #789 )
...
Add tracing spans to schedules, stages, systems
2020-11-10 18:49:49 -08:00
memoryruins
a68c217ccf
Mark Query and QuerySet contructors as pub(crate) ( #829 )
...
Mark Query and QuerySet contructors as pub(crate)
2020-11-10 16:14:33 -08:00
bjorn3
80a0448473
Add bevy_dylib to force dynamic linking of bevy ( #808 )
...
This easily improve compilation time by 2x
2020-11-09 19:26:08 -08:00
Carter Anderson
213ba9629a
ecs: fix system name in "conflicting system" error message ( #816 )
2020-11-08 13:48:00 -08:00
Carter Anderson
ebcdc9fb8c
Flexible ECS System Params ( #798 )
...
system params can be in any order, faster compiles, remove foreach
2020-11-08 12:34:05 -08:00
Lukas Wirth
fb7c651ab9
Port hecs derive macro improvements ( #761 )
...
* Port derive macro changes from hecs
* Emit more info on duplicate components in archetype creation
2020-11-06 13:20:53 -08:00
Carter Anderson
26be22e73c
fix unit test ( #802 )
2020-11-06 12:49:20 -08:00
Guillaume DALLENNE
5bd6deb974
Add mutated state when inserting an already existing component ( #404 )
...
Add mutated state when inserting an already existing component
2020-11-04 17:51:54 -08:00
Carter Anderson
1aa832be1d
fix unsafe Query function names ( #785 )
2020-11-03 14:10:29 -08:00
Carter Anderson
9afe196f16
release: 0.3.0 ( #783 )
2020-11-03 13:34:00 -08:00
memoryruins
e21705bec6
Remove two unused deps ( #780 )
2020-11-03 11:38:37 -08:00
memoryruins
f81208adaa
impl ReadOnlyFetch for Or, FetchOr, and FetchMutated ( #763 )
2020-11-01 16:51:51 -08:00
Carter Anderson
ad940fbf6e
Rename query.entity() to query.get() and query.get() to query.get_component() ( #752 )
2020-10-30 18:04:33 -07:00
Oscar
b6004e44cf
Local resources don't create if already present ( #745 )
...
Local<T> will no longer insert the inner resource if it already exists.
2020-10-30 12:21:57 -07:00
Boxy
dea05e9af5
Remove unsound cast in thread local resources ( #749 )
...
* Remove unsound cast in thread local resources
* Make ResourceRef(Mut)::new impossible to cause unsoundness with
2020-10-30 11:43:39 -07:00
Carter Anderson
1d4a95db62
ecs: ergonomic query.iter(), remove locks, add QuerySets ( #741 )
2020-10-29 23:39:55 -07:00
Freya
040b8f72b3
Optimize returns in file_asset_io.rs and entities.rs ( #728 )
...
Optimize returns in file_asset_io.rs and entities.rs
2020-10-28 16:59:45 -07:00
Carter Anderson
a6ac8faa8a
port upstream hecs performance improvements ( #716 )
2020-10-22 11:53:59 -07:00
Carter Anderson
c32e637384
Asset system rework and GLTF scene loading ( #693 )
2020-10-18 13:48:15 -07:00
Mat Hostetter
871790c6e0
Adjust how ArchetypeAccess
tracks mutable & immutable deps ( #660 )
...
`ArchetypeAccess` was tracking `immutable` and `mutable` separately.
This means that checking is_compatible requires three checks:
m+m, m+i, i+m.
Instead, continue tracking `mutable` accesses, but instead of
`immutable` track `immutable | mutable` as another `accessed` bit mask.
This drops the comparisons to two (m+a, a+m) and turns out to be
what the rest of the code base wants too, unifying various duplicated
checks and loops.
2020-10-15 13:39:01 -07:00
Nathan Jeffords
7e23e132ef
add version of the ecs's write_world
method that takes a pre-boxed world writer ( #661 )
...
Co-authored-by: Nathan Jeffords <njeffords@comtechefdata.com>
2020-10-14 14:01:08 -07:00
Carter Anderson
930eba4ccd
add thread local resources ( #671 )
2020-10-12 15:09:44 -07:00
Nathan Stocks
bf501b77cc
Don't panic when despawning entity multiple times ( #649 )
...
Emit a debug log message instead of a panic when despawning an entity which has already been despawned.
2020-10-08 16:58:19 -07:00