Files
OpenFrontIO/src/client
Rouillard 1c6c4c0512 Clear the sprites in a first loop before drawing (#692)
## 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:

![image](https://github.com/user-attachments/assets/c0f500ca-2465-4986-9755-0d5f07a17bd7)

after:

![image](https://github.com/user-attachments/assets/ebaef73e-9bf1-485f-8a79-da96c949e4f5)


## 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
2025-05-10 06:12:48 -07:00
..
2025-05-04 11:17:04 -07:00
2025-05-08 09:00:25 -07:00
2025-05-10 00:27:18 -04:00
2025-05-02 12:02:53 -07:00
2025-05-01 12:22:20 -07:00
2025-03-31 13:09:27 -07:00
2025-03-31 13:09:27 -07:00
2025-04-04 08:54:09 -07:00
2025-05-05 15:48:12 -07:00
2025-04-12 18:01:01 -07:00
2025-03-25 14:35:14 -07:00
2025-05-05 09:14:55 -07:00
2025-05-08 09:00:25 -07:00
2025-05-10 06:10:41 -07:00
2025-03-31 13:09:27 -07:00