ZeroCool940711 / Sandbox-Game-Engine

GNU General Public License v3.0
4 stars 1 forks source link

Add supoprt for Zpaq compression. #21

Open ZeroCool940711 opened 5 years ago

ZeroCool940711 commented 5 years ago

Currently the engine is using the library Zip to compress all the .chunk files and .cdata files, it doesn't compress too much the data making every space to use too much space also its not too secure as anyone can open the file with any standard zip program like Winrar or Winzip. By using Zpaq (Official website, GitHub Repository) we will improve compression rate and speed as Zpaq uses internally multiple compression algorithm that are really fast and the compression rate is really good, I've tested compressing with Zpaq the space data and some spaces went from 4.6gb to 41.8mbm, note that the 4.6gb version was already compressed using Zip, compressing a file that is already compressed usually don't give good result, even then you can see that by using Zpaq we could get results that are way better than using Zip. Another thing is that Zpaq is a journalist compression library which means we will be able to store multiple version of the same file, this will allow us to create save points or backups for the spaces and also could allow us to automatically save the changes made when using the engine in case it crashes, we could have our own version control system.