|Topic was automatically imported from the old Question2Answer platform.
|Published before Godot 3 was released.
I know this is a common and simple question but I still have doubt about them. I don’t know how to explain my doubt in a good way, it will be long and here’s my doubt.
AFAIK, _process is called every frame. I understand fame as in animation, 24 frames per sec, 60 frames per sec etc. BUT how is the frame defined in this function? for animation, the frame rate is constant, does this apply to _process as well? what if the frame rate is not smooth like a drop from 60 to 45? does it matter or not? the frame rate is just an averaged figure, so maybe it doesn’t really affect the update? Will it just update after the previous frame? So the update is in random time intervals ? Say I put print(“123”) in _process(), if the frame rate is constantly at 24 , the print statement will occur per 24 times in one second, am I correct? if the frame in _process() is not constant, it will just print the statement after the frame is finished, so there may be more or less than 24 printed statement ,am I correct? the frame doesn’t need to be constantly changed, as human can’t really feel the difference as long as the time interval is short, is this how it works?
So I guess fixed_process() is what I am thinking that the frame rate is constant?
Last question, if something cannot finish the calculation in one frame, what will happen? I have no idea whether I am asking a reasonable question or not.
I use this two function a lot, I think I can live with it without understanding it, but clarification is always good, I have trouble in understanding stuff that changes with time, may be some explanation using example in certain second and frame can help? I don’t know how to google this question, if there is already a link that solves my questions, please show me. This is a long Q&A question