# Map colour mappers made from the same colours are equal · dara/icarus

[View on GitCafe](https://git.cafe/dara/icarus/commit/6ec6478c8fb80790d43e090779649141d079f54f)

Repository: [dara/icarus](https://git.cafe/dara/icarus)

Visibility: public

Requested revision: 6ec6478c8fb80790d43e090779649141d079f54f

Requested commit: 6ec6478c8fb80790d43e090779649141d079f54f

Commit: 6ec6478c8fb80790d43e090779649141d079f54f

Tree: 946282c8e7d14495a4ca7e0242e0afcca0d8342e

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Map colour mappers made from the same colours are equal

Replays rebuild every frame, and since #304 they make the map's colour
mappers inside that per-frame build. A mapper had no equality, so each
frame's looked new to flutter_svg, which reloaded and redrew both maps
(the map and its revealed copy) every frame and lost the engine's cached
raster of them. Replay playback went from 4.8 to 8.2 ms of raster a
frame (144 Hz budget: 6.9 ms); with equality it is back to 5.0 ms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [7a157904ae67d49da34e709e5217eec112c923f7](https://git.cafe/dara/icarus/commit/7a157904ae67d49da34e709e5217eec112c923f7?format=markdown)

[Source at this commit](https://git.cafe/dara/icarus/tree/6ec6478c8fb80790d43e090779649141d079f54f?format=markdown)
