IllusionMods / IllusionFixes

A collection of fixes for common issues found in games by Illusion
GNU General Public License v3.0
157 stars 29 forks source link

[KK] InvalidSceneFileProtection creates long boot times on many Scenes. #43

Closed leoftm closed 9 months ago

leoftm commented 1 year ago

In environments where InvalidSceneFileProtection.dll is present, the presence of a very large number of scene files can cause a multiplicative slowdown in the startup of CharaStudio. It takes several minutes in an environment with more than 3000 files, but it takes less than ten seconds when KK_InvalidSceneFileProtection.dll is disabled.

ManlyMarco commented 1 year ago

You can avoid the issue by sorting your scenes into folders. The scene files are read to verify that they are valid which will take some time. Edit: It looks like at some point the preemptive checks were taken out so there should be no performance hit at studio start, make sure you have the latest version of the plugin.