Skip to content
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

simplify animated_material example #11576

Merged

Conversation

mockersf
Copy link
Member

Objective

  • example animated_material is more complex that needed to show how to animate materials
  • it makes CI crash because it uses too much memory

Solution

  • Simplify the example

@mockersf mockersf added A-Build-System Related to build systems or continuous integration C-Examples An addition or correction to our examples labels Jan 28, 2024
@alice-i-cecile
Copy link
Member

I'd like to unbreak CI, but we should make a stress-test version of this to deliberately expose the performance issues that motivated its creation.

@mockersf
Copy link
Member Author

this was not a stress test. examples should focus on one thing only

@alice-i-cecile
Copy link
Member

I agree. I'm fine to merge this as is. I'll make an issue to stress-testify this.

Comment on lines +32 to +34
let cube = meshes.add(shape::Cube { size: 0.5 });
for x in -1..2 {
for z in -1..2 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the materials aren't unique there's no point in spawning more than one helmet

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just realized this isnt helmets anymore

@atlv24
Copy link
Contributor

atlv24 commented Jan 28, 2024

I'll make a PR to add this back as a stress test

Comment on lines +32 to +34
let cube = meshes.add(shape::Cube { size: 0.5 });
for x in -1..2 {
for z in -1..2 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just realized this isnt helmets anymore

@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Jan 28, 2024
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jan 28, 2024
Merged via the queue into bevyengine:main with commit 79a2e5e Jan 28, 2024
26 checks passed
tjamaan pushed a commit to tjamaan/bevy that referenced this pull request Feb 6, 2024
# Objective

- example `animated_material` is more complex that needed to show how to
animate materials
- it makes CI crash because it uses too much memory

## Solution

- Simplify the example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Build-System Related to build systems or continuous integration C-Examples An addition or correction to our examples S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants