[INFORMATION](4/11/2024)
Cubism Editor 5.1 alpha2 is now available!
We have incorporated some of your comments and suggestions. Thank you for your comments and requests!
We will continue to welcome your feedback on alpha2.
Download/
Manual and Update History
UtSystem or Date() faster?
I need a simple clock to run in the background while the game is progressing.
I have the choice of using :
JavaScript's
requestAnimationFrame()
in conjunction with either :
-
UtSystem.getUserTimeMSec()
or
- JavaScript's
Date()
.
I would like to ask: which is more efficient?
Thank you in advance
0 ·
Comments
FPS control in requestAnimationFrame I think difficult .
I think that JavaScript's Date () or SetTimeout () is good .