Hi all,
I have a question about FPS : there is something I don’t understand very well.
Here it is : originally, my game run in 60 FPS (in config.lua), and i use a “enterframe” function doing the job, skipping a frame each 2 frames : the third time i enter the function then i directly exit it. So my game run in a “bastard” 40 FPS where there is not the same timerate between each frame, but it’s not very important because the game is so speed that an human don’t see any timejump between frames.
When I test my game on an iphone 7, i have the speed i need. Let’s say, speed = 5/5.
When I test it on an old android device, the same code is very slow. Let’s say, speed = 1/5.
So in this last case, i thought that there is no need to delete my “skipping” function because if the code working in a frame last more than the time of the current frame, doing a real 60 FPS will not improve the speed : while a frame is not ended, another can’t begin.
But it WORKS IN THE OPPOSITE WAY : if I delete my “skip 1 frame each 2 frames” function on an old device then i obtain a good speed, let’s say 3/5.
HOW IS IT POSSIBLE ?