In VAB/SPH: constant disk read, disk write, growing memory
Opened this issue · 4 comments
Probably a problem with WASD Editor Camera or something else, didn't test with other mods.
-
GameData\WasdEditorCamera\Textures\WASD-on-24.png is read ~100 times per second
-
GameData\toolbar-settings.dat is saved ~500 times per second
-
The game's memory is growing bigger and bigger
-
See the attached NirSoft tool export: 1785 / 357 = 5. So the .dat is saved exactly 5 times while the icon is loaded 1 time.
Replication:
- Clean KSP Install, put mods' folders into GameData
- New Save
- Close the welcoming messages (I chose that the ClickThroughBlocker follows the mouse instead of clicks)
- Enter VAB
- Click the orange wrench icon, set WASDEditorCamera from Stock to Blizzy's only
- Maybe have to exit and reenter VAB, but the problem appears also after restarting the game, reverting from flight
I double checked that there isn't gamedata folder in gamedata folder.
Same effect with ModuleManager installed, since I noticed this with my heavily modded pack.
GameData:
000_ClickThroughBlocker\
000_Toolbar\
001_ToolbarControl\
Squad\
WasdEditorCamera\
toolbar-settings.dat
Test environment:
Clean KSP 1.11.1 install
Without DLCs (the same effect with DLCs)
Blizzy's Toolbar / ksp_toolbar (from Toolbar-1.8.0-1.8.0.5.zip)
ToolbarControl (from ToolbarControl-1.8.0-0.1.9.4.zip)
Click Through Blocker (from ClickThroughBlocker-1.10.1-0.1.10.15.zip)
WASD Editor Camera (from WasdEditorCamera-1.10.1-0.7.3.zip)
Logs: https://gist.github.com/hatalmasalma/cd6887de8941d4e8b1a550e59fe722bf
When making these logs, the settings have been already changed, so I just started the game, loaded the save and the VAB, then exited the VAB, then Alt+F4.
NirSoft ProcessActivityView export (have been logging for a few secs)
==================================================
Index : 1
Filename : C:\Kerbal Space Program v1-11-1_2\GameData\WasdEditorCamera\Textures\WASD-on-24.png
Extension : png
Open Count : 357
Close Count : 357
Failed Count : 0
Read Count : 357
Write Count : 0
Read Bytes : 357 000
Write Bytes : 0
Last Handle : 0x00000000000005a8
Last Error Code :
Opened By Module :
Opened By Address : 0x0000000000300101
==================================================
==================================================
Index : 2
Filename : C:\Kerbal Space Program v1-11-1_2\GameData\toolbar-settings.dat
Extension : dat
Open Count : 357
Close Count : 357
Failed Count : 0
Read Count : 0
Write Count : 1785
Read Bytes : 0
Write Bytes : 215 271
Last Handle : 0x00000000000005a8
Last Error Code :
Opened By Module :
Opened By Address : 0x0000000000300101
==================================================
Given that literally tens of thousands of people are using this, I really doubt it's a problem with the mod.
I've left it sitting in the editor for hours without seeing this problem.
I'll take a look, but you would be better served by posting in the threads on the forum, where other people can help as well.
Install ZeroMiniAVC. You still have MiniAVC installed, it's been broken for a few years now
Tried a few things, but they didn't work:
-Deleting miniavc.dll
-Installing ZeroMiniAVC
-Installing ZeroMiniAVC+ deleting miniavc.dll
-changing resolution
-renaming the constantly loaded png (the .dat was still being rewritten)
Finally I found the problem:
The problem was with WASDEditorCamera's icon, or something related to that. Lucky (and lazy) me only installed that mod when testing.
Workaround:
I simply disabled WASDEditorCamera's icon from Blizzy Toolbar (in the settings page of Blizzy Toolbar. Of course I will have to reassign it to the stock toolbar if I want to modify something, but it will be hidden for now.
Anyway, thanks for your previous modding work
That is odd, I'll try it out. Thanks for the update. I'm going to reopen this until I get a chance to look at it