[Merged by Bors] - Slight perf improvements and tidy for contributors example#3764
[Merged by Bors] - Slight perf improvements and tidy for contributors example#3764SUPERCILEX wants to merge 13 commits intobevyengine:mainfrom SUPERCILEX:tmp2
Conversation
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
|
I generally really like these changes! They clean things up a bit, and are well-motivated. In real code, I would probably prefer the |
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
|
@alice-i-cecile Is there anything I need to do after the approval? |
Nope, you're all good. If you'd like, you can ask around and wrangle up another approval from the community. Once that's in place, I can merge this in. (I have merge rights for docs and examples). |
|
Makes sense, thanks! |
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
|
While we're at it, it would be a bit more idiomatic for that timer to be a resource rather than a component. |
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
alice-i-cecile
left a comment
There was a problem hiding this comment.
I like the further changes! A bit iffy on the clippy ignore, but I agree that it's a clippy bug.
# Conflicts: # examples/2d/contributors.rs
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
# Conflicts: # examples/2d/contributors.rs
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
|
@alice-i-cecile @rparrett Looks like this should finally be ready for a merge. Any outstanding concerns? |
|
Just a nit, but a few other examples (plugin, font_atlas_debug) use a naming scheme that would look like struct SelectionState {
timer: Timer,
has_triggered: bool,
}When combining a timer with some other state in a resource. |
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
|
Sounds good, done! |
|
bors r+ |
|
Woohoo, thanks! |
No description provided.