1 decade ago by appMobiTony
I noticed that there is a problem with drawing pre-rendered repeating backgrounds when the size of the layer is different from the chunkSize. For the specific example I was looking at, the layer is 320x320 (10x10 with a tileSize of 32), the chunkSize is 512 repeat=true.
Here is a screenshot of the issue:
Here is a screenshot of the issue:
1 decade ago by dominic
You're right! Good catch.
Concerning small preRendered BackgroundMaps, I also added a check that will decrease the
The updated version is in the git repo. Thanks!
Concerning small preRendered BackgroundMaps, I also added a check that will decrease the
chunkSize
to the size of the BackgroundMap if it's smaller. This way, there wont be as much overdraw. I.e. it makes no sense to render a 100x100 px map into 512px chunks if they end up mostly empty anyway.The updated version is in the git repo. Thanks!
1 decade ago by appMobiTony
Shrinking the chunkSize makes sense, thanks for the update!
Page 1 of 1
« first
« previous
next ›
last »