Thanks for providing the test case Zervox, after I've implemented memory leak detection to Recast, I was able to find one leak related to pathfinding, fixed it (available in next release).
However I think that it's not related to the main issue of this thread.
Quote:Well, what your leak detection measures is the leaks upon shutting down the application, but not semantic leaks. "Leaks" that result in the application allocating more and more memory for things that will be used and are then properly free'd when the application shuts down. This can be a cache functionality gone wrong for example. Technically those are not leaks detected by a check at shutdown, but the application uses more and more memory.
I know what you're saying, but that's not the case, the engine is pretty safe when it comes to memory management.
Your test confirms it:
Quote:I tried my notebook with an i7 and the problem didn't happen there.
I'm not using any separate codepaths for cpu's or gpu's when it comes to just processing in the editor. It looks like there's no problems for 99.9% of engine users, but it just happens on your computer.
Quote:Since it is only happening if the mouse is over the window, could it be something related to input handling?
no, that's not related to input, when the mouse is over the viewport, then multiple threads are fired and each checks for possible collision detection between mouse cursor and the terrain and objects.
It makes me wonder if your system has some issue with creating/deleting threads in each frame.
Quote:How can I assist you with finding the root of this. Do you want me to run a special version of the editor here with advanced logging and leak detection and send you the results?
You could try to write a simple application that in each frame calls 'MultiThreadedCall' for example for "Cpu.cores()" number of elements, and observe the memory usage, something like that:
bool Update()
{
MultiThreadedCall(8, ..);
return true;
}
1) Are you sure you're not having installed any debug/perf. measurement tools or anything suspicious?
2) Did you try uninstalling all apps?
3) Did you try uninstalling all anti-virus, firewalls programs?
4) Did you try updating bios, graphics drivers, windows updates?
Are there any other EE users here that are using AMD CPU and could check the memory usage in the Editor over time?