Digging was called in the player's physics process which typically gets called 60 times a second. Moving it to _process massively decreases lag. Maybe there is a better way to do this? This solution is significantly more performant and even works on web.
Digging was called in the player's physics process which typically gets called 60 times a second. Moving it to _process massively decreases lag. Maybe there is a better way to do this? This solution is significantly more performant and even works on web.
Tangentially related. I recently used this in a game jam - https://gregry.itch.io/save-the-animals-calm-before-the-storm. I have a few other improvements I will create pull requests for.