Open gnysek opened 2 weeks ago
So far, I am only seeing a very modest 10-15MB when I do my first search, so your project must be truly massive or there is some other step required. I only see around 2-3MB each time thereafter (if even that - many searches don't add anything on for me).
As you say, repeating a search for the same string doesn't seem to cause any change.
I also see a further increase each time I scroll down through the results list - although, again, this is 1-2 MB as I scroll through all 793 search matches for "e" in the project I am using.
However, yes, this all seems to stick around - even after closing the search&replace window and manually clearing the search results from the bottom dock.
Interestingly, shortly after I did that "clean up", I got another spike of a few MB and only about 50% of that was recovered within the next minute or so.
Okay, solid repro in a project everyone has access to, so I have updated the steps above and added more definite numbers for each.
@gnysek Could you do my steps and let us know if you see drastically higher RAM usage numbers, please?
If I close the project and return to the Start Page, then I very quickly drop in chunks until I reach about 245MB, but then any further drops are much smaller and slower. Settles eventually at about 210MB.
After searching few times in this project:
They're bigger for me if any of results (code, object) was opened at least once.
Description
When doing global search (Ctrl+Shift+F) for one letter, IDE takes a lot of memory (proportional to size of project). In my case, where I have 300 scripts, searching for "a" takes around +800 MB. However, it seems that IDE isn't freeing this memory until another search is performed (or after some time when GC happens), and even if, only 80-90% of memory is freed. Some amount stays reserved forever.
Steps To Reproduce
Which version of GameMaker are you reporting this issue for?
IDE v2024.4.0.137 Runtime v2024.4.0.168
Which operating system(s) are you seeing the problem on?
Windows 10.0.22631.0
514148c4-6cd6-4647-a247-5091a17a3b87