-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade bevy to 0.15, purge bevy_mod_picking, github toolchain update. #86
Open
rydb
wants to merge
6
commits into
urholaukkarinen:main
Choose a base branch
from
rydb:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+207
−136
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4087989
mark: mostly compiling
ActuallyHappening 2f8b26a
mark: transform-gizmo-bevy crate compiles
ActuallyHappening 0f6beb3
feat: bevy example compiles and runs properly
ActuallyHappening 1a0060f
upgraded to 0.15, purged bevy_mod_picking, updated toolchain, added w…
rydb 9ecf433
update to egui 30
GameboyColor32 57281e2
Merge pull request #1 from GameboyColor32/main
rydb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,57 +3,57 @@ resolver = "2" | |
members = ["crates/*", "examples/*"] | ||
|
||
[workspace.package] | ||
version = "0.4.0" | ||
rust-version = "1.78.0" | ||
version = "0.5.0" | ||
rust-version = "1.82.0" | ||
edition = "2021" | ||
license = "MIT OR Apache-2.0" | ||
homepage = "https://github.com/urholaukkarinen/transform-gizmo" | ||
repository = "https://github.com/urholaukkarinen/transform-gizmo" | ||
authors = ["Urho Laukkarinen <[email protected]>"] | ||
|
||
[workspace.dependencies] | ||
transform-gizmo = { version = "0.4.0", path = "crates/transform-gizmo" } | ||
transform-gizmo-egui = { version = "0.4.0", path = "crates/transform-gizmo-egui" } | ||
transform-gizmo-bevy = { version = "0.4.0", path = "crates/transform-gizmo-bevy" } | ||
transform-gizmo = { version = "0.5.0", path = "crates/transform-gizmo" } | ||
transform-gizmo-egui = { version = "0.5.0", path = "crates/transform-gizmo-egui" } | ||
transform-gizmo-bevy = { version = "0.5.0", path = "crates/transform-gizmo-bevy" } | ||
|
||
egui = "0.29" | ||
eframe = "0.29" | ||
emath = "0.29" | ||
epaint = "0.29" | ||
ecolor = "0.29" | ||
egui = "0.30" | ||
eframe = "0.30" | ||
emath = "0.30" | ||
epaint = "0.30" | ||
ecolor = "0.30" | ||
glam = { version = "0.29.1", features = ["mint"] } | ||
mint = "0.5" | ||
enum_dispatch = "0.3.12" | ||
ahash = "0.8.7" | ||
enumset = "1.1.3" | ||
bytemuck = "1.5" | ||
uuid = "1.1" | ||
bevy = "0.14" | ||
bevy = "0.15" | ||
|
||
bevy_app = { version = "0.14", default-features = false } | ||
bevy_core = { version = "0.14", default-features = false } | ||
bevy_core_pipeline = { version = "0.14", default-features = false } | ||
bevy_reflect = { version = "0.14", default-features = false } | ||
bevy_math = { version = "0.14", features = ["mint"], default-features = false } | ||
bevy_render = { version = "0.14", default-features = false } | ||
bevy_input = { version = "0.14", default-features = false } | ||
bevy_asset = { version = "0.14", default-features = false } | ||
bevy_utils = { version = "0.14", default-features = false } | ||
bevy_pbr = { version = "0.14", default-features = false } | ||
bevy_ecs = { version = "0.14", default-features = false } | ||
bevy_log = { version = "0.14", default-features = false } | ||
bevy_window = { version = "0.14", default-features = false } | ||
bevy_transform = { version = "0.14", default-features = false } | ||
bevy_app = { version = "0.15", default-features = false } | ||
bevy_core = { version = "0.15", default-features = false } | ||
bevy_core_pipeline = { version = "0.15", default-features = false } | ||
bevy_reflect = { version = "0.15", default-features = false } | ||
bevy_math = { version = "0.15", features = ["mint"], default-features = false } | ||
bevy_render = { version = "0.15", default-features = false } | ||
bevy_input = { version = "0.15", default-features = false } | ||
bevy_asset = { version = "0.15", default-features = false } | ||
bevy_utils = { version = "0.15", default-features = false } | ||
bevy_pbr = { version = "0.15", default-features = false } | ||
bevy_ecs = { version = "0.15", default-features = false } | ||
bevy_log = { version = "0.15", default-features = false } | ||
bevy_window = { version = "0.15", default-features = false } | ||
bevy_transform = { version = "0.15", default-features = false } | ||
bevy_derive = { version = "0.15", default-features = false } | ||
bevy_image = { version = "0.15", default-features = false } | ||
bevy_picking = {version = "0.15", default-features = false} | ||
|
||
[profile.release] | ||
opt-level = "s" | ||
panic = "abort" | ||
|
||
[workspace.lints.rust] | ||
elided_lifetimes_in_paths = "allow" | ||
future_incompatible = "deny" | ||
nonstandard_style = "deny" | ||
rust_2018_idioms = "warn" | ||
rust_2021_prelude_collisions = "deny" | ||
semicolon_in_expressions_from_macros = "deny" | ||
trivial_numeric_casts = "deny" | ||
|
@@ -64,7 +64,6 @@ unused_lifetimes = "deny" | |
unsafe_code = "deny" | ||
|
||
[workspace.lints.clippy] | ||
all = "deny" | ||
as_ptr_cast_mut = "deny" | ||
await_holding_lock = "deny" | ||
bool_to_int_with_if = "deny" | ||
|
@@ -133,7 +132,7 @@ match_same_arms = "deny" | |
match_wild_err_arm = "deny" | ||
match_wildcard_for_single_variants = "deny" | ||
mem_forget = "deny" | ||
mismatched_target_os = "deny" | ||
unexpected_cfgs = "deny" | ||
mismatching_type_param_order = "deny" | ||
missing_enforced_import_renames = "deny" | ||
missing_safety_doc = "deny" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bevy 0.15 switched to a retained rendering world, meaning these entities never get despawned. Leaving the app running with the gizmo visible in the window will cause render entities to build up in the render world, creating more and more draw calls per frame until the app slows to a halt.
Without re-architecting this portion of the library to utilize retained entities, a simple fix is to also insert the TemporaryRenderEntity component. This will cause the entity to be despawned at the end of each frame.