mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 10:54:16 +00:00
1c6c4c0512
## Description: Split the clearRect from the drawImage in a first loop so that moving units don't erase other units. There should not be a perfomance lowering. There is still an issue of unit erasing other units when the other unit is not updated (unit didn't move) but it's a rare case and the fix would be to update all units regardless of their activity, so I think this might be a good compromise, performance wise. before:  after:  ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors ## Please put your Discord username so you can be contacted if a bug or regression is found: Vivacious Box