Call recalulate less often to speed up gui updates, call root_container.recalculate a third time when recalculating gui. Gui calls recalculate 10x less when doing a full recalculate.

This commit is contained in:
2020-06-09 09:11:57 -05:00
parent eb4d5d4d21
commit 5b2a015421
2 changed files with 2 additions and 6 deletions

View File

@@ -53,6 +53,8 @@ module CyberarmEngine
if @pending_recalculate_request
@root_container.recalculate
@root_container.recalculate
@root_container.recalculate
@pending_recalculate_request = false
end