[quote author=figment link=topic=21255.msg763908#msg763908 date=1535512905]
Found a huge performance improvement for .NET BinarySerializer that vastly improves the performance of Rags saves for No Haven. It sped up loading a game save from 50 seconds to 10 seconds on my computer and appears to be very safe. The main requirement is that you have .NET 4.7.2 installed which I believe you have to install separately.
You must be registered to see the links
You must be registered to see the links
Here is an article about the change itself:
You must be registered to see the links
Here is a file for that for Rags.exe config. Just replace the existing config wherever you installed Rags. [mega]
You must be registered to see the links
[mega]
Ok so that was nice. I consider performance problems in Rags an interesting challenge so before I found this I hacked the Rags 2.4.16 version to be slightly faster though the config change is really nice.
What I did was the following (a little too much detail for most but whatever):
[list type=decimal]
[li]Remove the hidden save game that it does before you try to exit or hit the load menu. If you want to save use the save menu. Save several seconds of waiting.[/li]
[li]It sorts the variables and picture lists and then uses a binary search when trying to find things in the lists. Basically the game is doing linear searches through large lists constantly which is just bad programming.[/li]
[li]There was a slow Guid to string conversion that was being done constantly so I optimized that but left it as linear cause sorting the object list seemed to cause problems[/li]
[/list]
This stuff just speeds up little things over time which avoids some of the jumpiness when scheduling raids. But I've had few issues so I'm going to use both.
I cannot fix everything in Rags but these seem reasonably safe. Also this should work for any Rags game and not just No Haven.
Patched Executables Download:
You must be registered to see the links
[mega]
Warning: The patched files might cause problems that I'm not aware of so use at your own risk. Make backups and all that. The other config change should be totally safe.