1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-09 11:04:03 +00:00
Commit Graph

3 Commits

Author SHA1 Message Date
tobspr
f3b82961dc Fix map chunk view 2021-08-26 09:04:46 +02:00
tobspr
06d5c6a6dc Fixes & update changelog 2021-08-25 13:23:02 +02:00
PFedak
6f56d77535
Aggregate map chunks in overlay. (#1247)
Overlay rendering performance seemed bottlenecked by drawImage calls. To
reduce both the number of calls and the number of different source
buffers, cache overlay buffers for squares of chunks. This adds a very
small extra cost for updates (one additional drawImage) and some cost
for drawing chunks outside of view, but this is more than made up for by
the savings.

By default, the aggregate are 4x4 squares of chunks.
2021-08-25 13:04:52 +02:00