-
Notifications
You must be signed in to change notification settings - Fork 309
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
Use optional instead of infinity #1840
base: master
Are you sure you want to change the base?
Conversation
ca48642
to
d9a17f2
Compare
7f93aa3
to
d8f003b
Compare
tdb = phase->startTime(); | ||
else if (tdb > phase->endTime()) | ||
tdb = phase->endTime(); | ||
tdb = phase->clamp(tdb); |
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.
clamp to [0, 1]?
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.
this is to clamp between start time and end time of a phase.
what's wrong with infinity? |
Kudos, SonarCloud Quality Gate passed! 0 Bugs 0.0% Coverage The version of Java (11.0.17) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
i was hoping to enable fastmath sometime. frustum.cpp checks isinf which can easily be avoided. i have isinf checks for startTime/endTime of phases in other frontends id rather not replace with checking against 1e9 |
I have mixed feelings about The |
No description provided.