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

Remove redundant time property #583

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

rparrett
Copy link
Collaborator

Objective

Fixes #575

I think that this code predates time generally being available to bevy shaders in globals.

We can accomplish the same thing using Bevy's built-in time. This was only being used in bevy_ecs_tilemap for animation.

I am having trouble imagining a legit scenario where users could have been using SecondsSinceStartup and they couldn't accomplish whatever they were doing through less janky means. So I don't think this is likely to be breaking anyone's stuff.

The padding is no longer necessary as the resulting struct is now 16 byte aligned.

Testing

Tested the animation example on

  • m1 mac (native)
  • chrome / webgl2

Copy link
Collaborator

@ChristopherBiscardi ChristopherBiscardi left a comment

Choose a reason for hiding this comment

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

makes sense to me

@ChristopherBiscardi ChristopherBiscardi merged commit 73124f4 into StarArawn:main Dec 23, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SecondsSinceStartup resource is redundant
2 participants