- Home /
what will happen if the update() can't get finished during a single frame ?
I am a newer to unity , as i read the doc i have a question :
As I know from documentation, the update() runs at every single frame , so if the frame rate is 60 per second ( frame-time is 1/60 ) , the update() will run 60-times per second .
But if the update() have some heavy game logic to process , whether the Unity3D will always keep the update() processing get finished during 1/60 ??? it seems like the only way it can get 60 calls during a second !!!
Thank you very much ! @Eric5h5 @aldonaletto @duck @Bunny83 @robertbu @fafase @Statement
you've got it backwards, a frame won't be drawn until all the calculations in the update are complete, so you don't have to worry about incomplete calculations...if there is some heavy work, it means that it will actually affect the framerate instead...if there is some kind of an infinite loop in a single frame....it would give an error i think
Your answer
Follow this Question
Related Questions
2D Animated tile synchronization 0 Answers
GetKeyDown Space doesn't work correctly with FixedUpdate 2 Answers
How do I pass an input in Update() to FixedUpdate() for Physics movement? 2 Answers
Could Update and FixedUpdate happen at the same time? 1 Answer
Should we check animation condition in Update or FixedUpdatE? 3 Answers