You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DrawableNoise mask set to null and only created if enabled or values set (which enables). Cuts way back on memory usage and load times for campaigns with multiple maps. Issue RPTools#1006
Describe the bug
There has been multiple reports of MapTool using up much more memory since 1.5.7
Reverting commits in batches, I think I've isolated the problem to the
DrawableNoise
feature (commit 2275f6f).Each
ZoneRenderer
stores up aDrawableNoise
object, which takes up a lot memory. @Phergus estimated that each noise mask is around 28MB.To Reproduce
Steps to reproduce the behavior:
is replaced by
Expected behavior
Users shouldn't have to pay hundred of mbs in memory if the feature isn't active.
I suggest that
noise
variable be only constructed once the user activates the noise feature.MapTool Info
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: