8/16/2023 0 Comments Private profile redirector skyrim![]() ![]() ![]() When the game, ENB or something else calls GetPrivateProfileString first time this plugin will load requested file in memory and return required data. It will be basically imperceptible when used on the vanilla game and will go up from there, shaving off 6 seconds for 50 or so plugins, up to 20+ seconds for 250+ plugins. The amount of seconds that this mod will reduce your start time by depends on the amount of enabled plugins you have, as well as other things using INI files such as ENB (though ENB comes with it's own loading issues that this mod can't fix). As a solution this mod will hook the functions involved and load the target INI files in memory so that each following call to the same INI file will be much faster as it will read directly from memory and will not require opening the file from scratch again. So you end up with an insane amount of incredibly inefficient calls for each enabled mod plugin. What really makes this terrible is the fact that for each enabled plugin the game will attempt to read all the same settings from a hypothetical INI file that that plugin might or might not be loading. ![]() But do you know what is worse than using such a function? Using it hundreds of thousands of times.Apparently the game uses that function for every game setting individually, which means that the same ini file is opened and closed hundreds of times. The function in question is GetPrivateProfileString, a relic of 16 bit operating systems. The problem this plugin tries to solve comes from the fact that the game uses an old, deprecated and extremely inefficient function to load values from INI files. Speeds up game start by storing INI files in memory instead of opening, parsing and closing the file each time some value from it is needed. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |