Aside from re-writing code, one could still implement changes to reduce overkill (and therefore, lag) such as attack-ground. It would still be the player's decision whether or not to use attack-ground, but it would also be more effective in large battles due to less overkill.
However, this does looks laggy on its own right, maybe it just appears bad since its shown in 0.5x speed.
Attack-ground: