| 667 | constexpr auto TimeScale = 1.0; |
| 668 | |
| 669 | static void variableUpdate() |
| 670 | { |
| 671 | auto& tweener = EntityTweener::get(); |
| 672 | |
| 673 | const auto alpha = std::min<float>(_accumulator / UpdateTime, 1.0); |
| 674 | |
| 675 | while (_accumulator > UpdateTime) |
| 676 | { |
| 677 | tweener.preTick(); |
| 678 | |
| 679 | tick(); |
| 680 | _accumulator -= UpdateTime; |
| 681 | |
| 682 | tweener.postTick(); |
| 683 | } |
| 684 | |
| 685 | tweener.tween(alpha); |
| 686 | |
| 687 | Ui::render(); |
| 688 | } |
| 689 | |
| 690 | static void fixedUpdate() |
| 691 | { |