friarsol wrote:I ran a profiler today (Visual VM) on my netbook because I haven't really been able to play more than one quest game before Forge was swallowing my CPU and lagging everything down. It looks like there's a ton of CPU time being taken up by forge.view.arcane.util.ImageUtil.getImage(File). I played for maybe 15 minutes or so, and 50% of the cpu time was taken up by this function. I played for another 5-10 minutes and CPU time is over 60% now. We should definitely fix this.
I usually can play a single game in about 5-10 minutes and it took me 25 to play this one because the CPU was getting destroyed.
Ok, so I stepped through this code a bit this morning and it seems like Quest Pet tokens aren't actually being cached, unlike mostly everything else. It looks like the issue might be because card characteristics doesn't have the right Image name, so it's just never getting saved. It seems ok for normal tokens. I'm not sure if anything is actually being put into the cache right now or not. But I almost feel like they aren't.
So I'm going to add an explicit addition into the cache and try to fix the quest icons (since obviously they do have the right name show up, since I can see the token images on the BF), when I get some time.