linuxgurugamer / ksp_toolbar

Common API for GUI toolbars in KSP
BSD 2-Clause "Simplified" License
13 stars 15 forks source link

In VAB/SPH: constant disk read, disk write, growing memory #27

Open hatalmasalma opened 3 years ago

hatalmasalma commented 3 years ago

Probably a problem with WASD Editor Camera or something else, didn't test with other mods.

Replication:

  1. Clean KSP Install, put mods' folders into GameData
  2. New Save
  3. Close the welcoming messages (I chose that the ClickThroughBlocker follows the mouse instead of clicks)
  4. Enter VAB
  5. Click the orange wrench icon, set WASDEditorCamera from Stock to Blizzy's only
  6. 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
==================================================
linuxgurugamer commented 3 years ago

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.

linuxgurugamer commented 3 years ago

Install ZeroMiniAVC. You still have MiniAVC installed, it's been broken for a few years now

hatalmasalma commented 3 years ago

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

linuxgurugamer commented 3 years ago

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