Closed wgxh-cli closed 4 months ago
In addition, unit system lies on Scene
rather than App
, because animations are defined on Scene
rather than App
and therefore the unit they used should be determined that time, with respect to this issue.
You should do this under the rule that don't make breaking change! Please add back unit
Breaking changes should be allowed when needed
Generally speaking, When playing animations, elapsed
should be advanced by 1 each time called update
, rather than set directly by physical time elapsed.
Current implementation take the fps
as default as 1000 per second, that is 1 per millisecond, but actually not every frame take time exactly as 1 milisecond
Unit system cannot hold without a precise definition of
fps
, otherwise, one shall be confused with how many frames to advance within a so-called "unit".