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
| // Not enough context here to be useful, I will make a self-contained example soon. | |
| // This code allocates memory: | |
| _timer += (FP.timeInFrames ? _anim._frameRate : _anim._frameRate * FP.elapsed) * rate; | |
| // This code does not: | |
| var timeAdd:Number = _anim._frameRate * rate; | |
| if (! FP.timeInFrames) timeAdd *= FP.elapsed; | |
| _timer += timeAdd; | |
| // Types: | |
| _timer: Number | |
| FP.timeInFrames: Boolean | |
| _anim: Anim (contains _frameRate: Number) | |
| FP.elapsed: Number | |
| rate: Number |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment