how I can use setInterval
I know
1 second=1000 millisecond
but I'm confuse that how
10 fps==100 milliseconds
explain
![]() |
how I can use setInterval
I know
1 second=1000 millisecond
but I'm confuse that how
10 fps==100 milliseconds
explain
The time between frames is the inverse of frames per second
In other words, each of the 10 frames are on for 100 milliseconds, which has to add up to a total time of 1 second
10*100 = 1000milliseconds, which is a second.
Hi, as you are still confused I will try again.
You have 10 frames per second.
This means 10 frames in every second.
To work out the time for each frame, you need to split up the second into equal amounts.
Because you have 10 frames per second, you need to split the second up into 10 equal amounts.
this is done by division:, this is 100 milliseconds using the conversion that you say you understand.
| All times are GMT -7. The time now is 08:56 AM. |