DEV Community

Cover image for Quick reminder: Stop putting heavy logic in Unity's Update()
Carlos Maemo
Carlos Maemo

Posted on

Quick reminder: Stop putting heavy logic in Unity's Update()

If you are coming from pure script writing (like Python) to game engines, the Update() loop is a trap.πŸͺ€

Putting complex calculations there will destroy your framerate. If it doesn't need to happen every single frame, use Coroutines or an external event manager.

πŸ› οΈYour players' CPUs will thank you.πŸ’»

Top comments (0)