You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
A description in the commit message of how this calculation is better than the previous one would be nice :) (even if it is just "the previous implementation was wrong -- this one is correct because it does x correctly" or something).
The reason will be displayed to describe this comment to others. Learn more.
As the next best thing to explaining further in the commit (which I acknowledge I should have done), I discovered that by simply reversing the formula from BEAN_FOR_FRAME, more accurate BEAN numbers were returned from FRAME_FOR_BEAN.
But looking at the results (in a spreadsheet \o/) showed that subtracting 0.5 instead of 1.5 yielded always-correct output, while subtracting 1.5 often missed by one frame.
cb3b1b6
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.
The commit message says BEAN_FOR_FRAME was improved, but the diff touches FRAME_FOR_BEAN.
cb3b1b6
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.
A description in the commit message of how this calculation is better than the previous one would be nice :) (even if it is just "the previous implementation was wrong -- this one is correct because it does x correctly" or something).
cb3b1b6
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.
Oops. Not the first time today I mixed those two function names.
cb3b1b6
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.
As the next best thing to explaining further in the commit (which I acknowledge I should have done), I discovered that by simply reversing the formula from BEAN_FOR_FRAME, more accurate BEAN numbers were returned from FRAME_FOR_BEAN.
But looking at the results (in a spreadsheet \o/) showed that subtracting 0.5 instead of 1.5 yielded always-correct output, while subtracting 1.5 often missed by one frame.
cb3b1b6
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.
(y)