Open asvitkine opened 4 years ago
Actually, investigating more, the default performance is not as bad as I had observed originally.
Instead, I was looking at a fix for white lines sometimes being shown and found that:
g2d.setRenderingHint(
- RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);
+ RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);
Fixes the issue.
However, the above resulted in much worse performance. (2ms per tile drawn as opposed to 0.4ms before).
My changes above actually bring this back down. However, the white lines are re-introduced. Seeing if I can get the best of both worlds...
If map zoom is applied, generate tile images at the zoom level, rather than scaling them when drawing.
This is what it used to be like, but zooming in meant that it would redraw the entire map. But at default scale (1) it shouldn't really affect performance in any way I think
How can the problem be recreated?
Do you have any ideas for an expected fix?
Yes, working on it. :)
Some things I'm trying:
Attach a Save Game
N/A
If playing a prerelease, which version are you using?
Game Version: 2.0 TOT
If playing a prerelease, does this happen on the latest release?
Is there anything else we should know?