-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Merged by Bors] - Fix frame count being a float #4493
Conversation
Actually, I just realized this isn't a public API (couldn't figure out why my imports weren't working lol) so I'm less invested in this. I still think it's a good idea since it means the frame count will break down at 2^64 instead of 2^53, but if this isn't desired then I'm happy to close. |
At a frame rate of 1_000 I believe it will take 30_000 years to overflow 2^53. Someone please check my math but I think this is accurate. |
still about 2047 times less time than 2^64 :P |
@raffimolero do you mean about 2^11 times less ;) |
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.
I like this change. Even without a public interface, I prefer optimizing for correctness in this sort of design.
bors r+ |
Original reasoning: #678 (comment) That reasoning doesn't seem valid IMO since eventually +1 will do nothing. Using an integer is more intuitive and will wrap around which is probably better than getting stuck.
Original reasoning: bevyengine#678 (comment) That reasoning doesn't seem valid IMO since eventually +1 will do nothing. Using an integer is more intuitive and will wrap around which is probably better than getting stuck.
Original reasoning: bevyengine#678 (comment) That reasoning doesn't seem valid IMO since eventually +1 will do nothing. Using an integer is more intuitive and will wrap around which is probably better than getting stuck.
Original reasoning: bevyengine#678 (comment) That reasoning doesn't seem valid IMO since eventually +1 will do nothing. Using an integer is more intuitive and will wrap around which is probably better than getting stuck.
Original reasoning: #678 (comment)
That reasoning doesn't seem valid IMO since eventually +1 will do nothing. Using an integer is more intuitive and will wrap around which is probably better than getting stuck.