WH3-Mod-Manager icon indicating copy to clipboard operation
WH3-Mod-Manager copied to clipboard

Recreating config.json multiple times after every launch

Open agi1512 opened this issue 10 months ago • 2 comments

Descriptiom

When starting WH3-Mod-Manager, the disk is used for quite a long time (~30s on nvme ssd), and the config.json and config_backup_v2.2.0.json files are overwritten several times. Each files are completely rewritten.

Just after launch (its KB for files and MB for drive in task manager): image image

After all writes done: image image

The difference in size is ~30KB, but files are constantly being created and overwritten, which takes a long time to use the disk. Also double RAM is used right after startup, but that may not be related to the current issue.

System Information

Version WH3MM: 2.2.0 OS: Windows 11 23H2 (22631.3296) Number of mods subscribed: 460 Number of mods enabled: 46

P.S.

You can ask me anything, I seem to be able to reproduce this with ease.

agi1512 avatar Apr 02 '24 19:04 agi1512

main.old.log renderer.log

logs indicate multiple evocations of saveConfig function

agi1512 avatar Apr 02 '24 19:04 agi1512

You can try 2.3.0 it has some optimizations for this. It's related to how config auto-saves if mod data changes from web scraping and such. It's exacerbated due to saving config in 2 locations, appdata and the mod manager folder and saving an extra backup for each config, due to some permission issues that I had reported in the past.

RAM usage is related to mod analysis if they contain outdated stuff, I don't think there's anything wrong there.

Shazbot avatar Apr 05 '24 18:04 Shazbot

Seems to be fixed, at least in 2.5, didn't manage to test 2.3. Config (and backup) seems to be rewriting only once.

agi1512 avatar May 06 '24 08:05 agi1512