From cce58580517dda2da8e21edd7688e23aa14a812e Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Thu, 2 Oct 2014 04:54:57 -0700 Subject: [PATCH] Updated Performance (markdown) --- Performance.md | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/Performance.md b/Performance.md index fba3d30..8206673 100644 --- a/Performance.md +++ b/Performance.md @@ -1,13 +1,15 @@ -Due to the way RCT2 was designed, it may not perform as well as it could. While these issues are merely theoretical at this point, they may become more relevant as more of OpenRCT2 is written. - -#Many files - -It is [claimed](https://support.steampowered.com/kb_article.php?ref=7388-QPFN-2491) that individual operating system calls to many different files is less efficient than a few calls to larger ZIP-like files. While storing custom files individually could still be done, perhaps all of the RCT2 base scenarios could be bundled into something like `RCT2 Scenarios.zip`, and the tracks into `RCT2 Tracks.zip`, and so on. Each expansion as well as the base game has around 650 object files, in addition to each scenario and track file. - -#Many files in one folder - -NTFS [slows down significantly](http://stackoverflow.com/questions/115882/how-do-you-deal-with-lots-of-small-files) with 10,000+ files in one folder. UNIX-like systems are claimed to have issues as well. If ZIP-like files are not desired, subfolder support may need to be added. - -#Compression - -RCT2 uses [poorly-compressed](https://github.com/IntelOrca/OpenRCT2/wiki/Music-Cleanup) WAVs. FLACs are smaller and may load more quickly. Other files can probably be compressed more heavily as well, although the benefits of this may not be noticeable. Music occupies the majority (~2/3) of a default RCT2 install. \ No newline at end of file +Due to the way RCT2 was designed, it may not perform as well as it could. While these issues are merely theoretical at this point, they may become more relevant as more of OpenRCT2 is written. + +#Many files + +It is [claimed](https://support.steampowered.com/kb_article.php?ref=7388-QPFN-2491) that individual operating system calls to many different files is less efficient than a few calls to larger ZIP-like files. While storing custom files individually could still be done, perhaps all of the RCT2 base scenarios could be bundled into something like `RCT2 Scenarios.zip`, and the tracks into `RCT2 Tracks.zip`, and so on. Each expansion as well as the base game has around 650 object files, in addition to each scenario and track file. + +#Many files in one folder + +NTFS [slows down significantly](http://stackoverflow.com/questions/115882/how-do-you-deal-with-lots-of-small-files) with 10,000+ files in one folder. UNIX-like systems are claimed to have issues as well. If ZIP-like files are not desired, subfolder support may need to be added. + +#Compression + +RCT2 uses [poorly-compressed](https://github.com/IntelOrca/OpenRCT2/wiki/Music-Cleanup) WAVs. FLACs are smaller and may load more quickly. Other files can probably be compressed more heavily as well, although the benefits of this may not be noticeable. Music occupies the majority (~2/3) of a default RCT2 install. + +Object files use a simple RLE (Run Length Encoding) encoder to compress objects. This could/should be replaced with something more powerful such as zip. At present when a save file has embedded objects all of those objects will be copied into the main folder. This might not be the most efficient way of doing this. Ideally the user should decide if they want there object folder to be flooded with these new files. \ No newline at end of file