PD2-Singleplayer icon indicating copy to clipboard operation
PD2-Singleplayer copied to clipboard

Modifying PlugyRun to decrease loading time 10x

Open exiledagain opened this issue 5 months ago • 0 comments

Plugy source code is available here. In order to load Plugy modifications, it creates the process with a debug flag. This is the cause of the slow loading times when a loot filter is enabled.

This can be negated by setting the environment variable _NO_DEBUG_HEAP=1.

The distribution zip could be changed to a new version with this single line change PlugYRun.cpp:470:

SetEnvironmentVariable("_NO_DEBUG_HEAP", "1");

Or a bat/ps1 file to set the variable as an alternate to a shortcut. Or changing the shortcut to set the variable before creating the Plugy process.

exiledagain avatar Sep 20 '24 09:09 exiledagain