-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reducing RAM usage #91
Comments
Yes: cwtools keeps a processed form of every script and localisation file in it's scope in memory. It's basically unavoidable if you want to have anything responsive, and all programming languages have high memory usage if you want to open several projects at once sadly! At a minimum this would be the "vanilla cache" which contains all the vanilla files, plus your mod. If you're including the base game in your workspace you might be causing it to load all of vanilla again. If your mod is a total conversion, you'd then effectively be keeping three copies of vanilla around :) One recommendation I have would be to create multiple workspaces, where some contain only your core mods + dependencies. This is the approach taken in other languages when solutions get too large. The huge files will cause some problems, although if they're over 2MB they're probably already being ignored by the default max file size setting |
I see, thanks! Those are all actionable and I'll get back to you with how well some of them work. |
Removing the base game and some other mods from the workspace reduced it down to around 3.5GB of RAM, so that worked as intended. The EDIT: disabled then re-enabled the extension and reopened vscode 3 times to get it to populate the loaded files tile again, but the specified path wasn't ignored. Are the filepaths not relative to workspace (are they absolute)? EDIT: is there a way to ignore all rules / stop linting? That should probably reduce the RAM usage significantly. I know I can manually specify individual rules to ignore via
EDIT: I would like being able to search in the vanilla files within the workspace. I think the best way to accomplish this is to add the vanilla folder to the workspace but ignore it using |
This extension is taking up around 4-5GB of RAM, making it hard to use together with the game open. I suspect it's because my workspace has too many CK3 projects in it, but I'm not sure if this contributes to it. Does having more CK3 files in a workspace (without opening) them increase RAM usage? My workspace includes:
Another possible culprit is that many of my event files are autogenerated via a python script, so I have like 20k line files that should be excluded from processing. Is there a way to mark files or directories as excluded from indexing?
The text was updated successfully, but these errors were encountered: