Alzter / TuxBuilder

A Godot re-implementation of SuperTux
GNU General Public License v3.0
212 stars 28 forks source link

Fix snowball death performance issue #24

Closed skyace65 closed 5 years ago

skyace65 commented 5 years ago

Disabling collision shapes for snowballs is now done with call deferred. Performance when they die is good now and this fixes the errors the debugger was generating. This also fixes the weird behavior that required disable() to be called twice so its been removed from the if state == "kill" part of the code. Closes #23

I also set up fireball to use call_deferred() so it doesn't create errors anymore.