0 votes

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

in Engine by (114 points)
edited by

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

2 Answers

+2 votes

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

by (1,514 points)

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.