Open kjniemela opened 1 year ago
After further investigation, it seems like it can happen even on visible tiles. It seems to have something to do with how the assets are loaded, but it's very hard to duplicate. It could be caused by the camera setting up its textures before the assets have loaded on the page.
I seem to be able to quite reliably reproduce this by disabling the browser cache and throttling the connection to simulate a slow network. Based on this, I'm now fairly certain that this is because the camera determining the height and width of an overlay texture before the texture has actually loaded.
Whenever an improvement is created, they may be rendered on the wrong tile, or sometimes they may not render at all. This does not always happen, though. It also only seems to happen when there are no units nearby to make the tile visible, so fixing #139 may also fix this, but we should still look into it in case there's an underlying issue.