Fixed process or just process for timers?

woopdeedoowoopdeedoo Posts: 109Member

Does it make any difference to use either fixed process or just process for timers?

In my particular case I'm thinking of making a game-world clock to count the passing of time, but I may also want timed triggers or a timer to count total time spent playing the game.

Best Answer

  • kidscancodekidscancode Posts: 16
    Accepted Answer

    _fixed_process() (it's been renamed to _physics_process() in 3.0) is only necessary for code that needs to be synchronized to the physics state. It's totally fine to use _process() for everything else. You get the delta value, so you don't lose any accuracy.

Answers

  • kidscancodekidscancode Posts: 16Member
    Accepted Answer

    _fixed_process() (it's been renamed to _physics_process() in 3.0) is only necessary for code that needs to be synchronized to the physics state. It's totally fine to use _process() for everything else. You get the delta value, so you don't lose any accuracy.

  • woopdeedoowoopdeedoo Posts: 109Member

    I see what you mean. Thanks. (Sorry for the delay.)

  • RukiriRukiri Posts: 58Member
    edited August 2018
    • edit...
Sign In or Register to comment.