[Notice of Holidays]
Please note that our staff will not be available from 2024/Dec/28 - 2025/Jan/5 JST.
The Live2D Creators Forum will remain open during the holidays.
Submissions that require a response will be answered after we reopen for business.
Please note that it will take longer than usual to respond to your request.
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 .