Originally Posted by vbalbert
I understand what you've said in your reply to the original message, but here's what I've done to figure out what's causing the problem (which seems to be nUI.)
I have only nUI and FuBar along with FuBar_PerformanceFu which shows me, among other things, my framerate and the amount of memory that's used. Without nUI the amount of memory that is used is fairly constant. But with nUI running the memory use just keeps climbing and climbing. If I force a garbage collection, the number goes down, but it starts to climb again. This happens if I'm just standing in one place.
The reason why I tried to find this stuff out is because I kept getting knocked off of WoW completely and the error message I get says it tried to allocate a certain amount of memory and couldn't do it. The amount of memory that is being used according to FuBar_PerformanceFu is ~140-160 MiB when I get knocked back to my desktop.
Although the memory usage is much lower with just the two (2 1/2?) addons I can see that eventually this will end up causing the same problem. In the time that I've written this missive the memory usage has almost tripled from 21 MiB to nearly 60 MiB.
I think this is why people have been calling this a memory leak although from what I read that's not an accurate situation.
Can you reproduce this and if so, can you help with possible solutions?
|
Originally Posted by spiel2001
nUI trades memory usage for performance. Put another away, in order to use less CPU time, nUI uses more memory. Memory usage is nearly a meaningless number when it comes to addon performance. I can easily write a mod that uses no memory at all but brings your frame rate to 0fps.
In nUI's case, I use temporary dynamic memory tables to gather and cache data. The more intense the action, the more of these tables that will get created. This causes your memory usage to rise dramatically until the garbage collector runs and returns the memory to the heap.
That said, as was already noted, I am working on substantially reducing the amount of new tables that are created in combat and to reduce the use of the garbage collector.
|
I've quoted Scott here as I think you missed his reply to this issue.