Tween counter: ~0k
What is happening here:
Bellow, 5 scenario are tested over different configuration / libraries:
results are just here to get an estimation.
- 1. Normal usage : 200 tween over 100 frames x 50 times
- 2. Long duration usage : 1000 tween over 500 frames x 100 times (to test long term usage and GC)
- 3. Medium usage : 2k tween over 200 frames x 5 times
- 4. Heavy usage : 5k tween over 200 frames x 5 times
- 5. Unrealistic : 10k tween over 500 frames x 5 times (to test many concurrent tween)
- Scenario 1 & 2: simulate normal game usage
- Scenario 3 & 4 & 5: are stress test which should almost never happen in real life
results are just here to get an estimation.
Results:
Normal tweens
# | Fatina | TINA.js | Tween.js |
---|---|---|---|
Scenario 1 | |||
Scenario 2 | |||
Scenario 3 | |||
Scenario 4 | |||
Scenario 5 |
Complicated tweens (callback, loop, easing)
# | Fatina | TINA.js | Tween.js |
---|---|---|---|
Scenario 1 | |||
Scenario 2 | |||
Scenario 3 | |||
Scenario 4 | |||
Scenario 5 |
Sequence / Chains
# | Fatina | TINA.js | Tween.js ** |
---|---|---|---|
Scenario 1 | |||
Scenario 2 | |||
Scenario 3 | |||
Scenario 4 | |||
Scenario 5 |
** TweenJS doesn't support sequence or timeline, so using .chain() for this test. Which is lighter but dont provides most of the sequence features