|Topic was automatically imported from the old Question2Answer platform.
I have a 2D platformer and in the player script, I’m using the _physics_process function as the main process function. I So far in my _physics_process function, I have global variables that are consistently updated (like the position of player being stored in a global variable at all times) and is used for different enemies in the game. I also put Input that can be taken in (like if the player pressed the “jump” button). Score variables are also updated in the physics process, collisions, move_and_slide() function, etc. When I run my game on another computer of mines, it runs at a choppy frame rate but on my computer it runs fine (mostly because I have a dedicated graphics card and the other computer doesn’t). Will changing the function to a _process function make the game run smoother? Should I do it? Should I only move some of the code into _process and others in _physics_process()?