[SOLVED] func _physics_process(delta): and func _integrate_forces(state): frequency

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Asoth

sorry,if that sounds like a stupid question but I could not find any clue on the net or doc.

I want to control force with parameters that will change quite oftenly; but they may not need to change as frequently as func _integrate_forces(state) and I could save some CPU by making calcul on a different call like func _physics_process(delta):depending on delta indeed.

thanks for your help

The _physics_process is called 60 times per second(by default) and i assume integrate_forces is the same

rustyStriker | 2018-07-05 09:05

:bust_in_silhouette: Reply From: Andrea

You can use set_process(true) or set_physics_process(false) to activate deactivate the process execution at every frame.
Dunno about _integrate_forces(state)

hhaa I wondered last time what could be this set_process(true) thank you

Asoth | 2018-07-05 10:44

:bust_in_silhouette: Reply From: Asoth

found it actually