Go Back   FileForums > Game Backup > PC Games
Register FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 27-10-2005, 06:42
Joe Forster/STA's Avatar
Joe Forster/STA Joe Forster/STA is offline
Senior forum member
 
Join Date: Nov 2000
Location: Hungary
Posts: 9,836
Thanks: 20
Thanked 342 Times in 224 Posts
Joe Forster/STA is on a distinguished road
Guys, .PK4 (and .PK3 and many "big files" in other games, for that matter) files are actually plain ZIP archives. There are three possibilities to deal with lots of game data files:

1. Have each file as a separate file in the file system. Very stupid idea as it eats up a lot of space (cluster slack, even with small cluster sizes, as with NTFS) and opening files takes relatively lot of time because the OS has to find the file in the file system. And this is especially true today when many games have their data in thousands of files.

2. Have all files put into a single, large, uncompressed "big file". (This "big file" can also be a ZIP archive, created with the "store" - that is, don't compress - method.) This is much faster as there's only one file for the OS and, when scanning the big file upon initialization, the game can build an internal list for all the files inside the "big file". This means that opening a file only means seeking inside the "big file".

3. Have all files put into a single, large, compressed archive. This gives you the advantage of the previous implementation and more... If you're using ZIP, you can use Info-ZIP's free implementation. And ZIP gives you a relatively good compression ratio at an extremely high decompression speed. Actually, extracting files from ZIP archives is not significantly slower than simply reading (or copying) files as the bottleneck is rather the hard disk reading (and writing) data, not the CPU running the decompression algorithm.

So, if you ask me, the best way is keeping game data inside a ZIP archive. As for preloading data, the way how files are stored doesn't matter, if you have enough RAM: all data will be loaded when the level is loaded so data doesn't need to be loaded while you're playing! (And RAM is cheap as hell anyway...!) So, I think, CrAcKo is experiencing some kind of optical illusion when he says uncompressing the .PK4 files improves anything at all...!
__________________
Joe Forster/STA
For more information, see the FileForums forum rules and the PC Games forum FAQ!
Don't contact me via E-mail or PM to ask for help with anything other than patches (or software in general) done by me, otherwise your request may be deleted without any reply!
Homepage: http://sta.c64.org, E-mail: [email protected]; for attachments, send compressed (ZIP or RAR) files only, otherwise your E-mail will bounce back!
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Order of songs Sepanto Media Files 3 29-09-2005 09:06
Spellforce: The Order of Dawn 1.10 NoCD Patch - GIMPSRUS Andre2779 PC Games 1 27-02-2004 04:50
File order for Crazy Taxi 2 achilles79 DC Games 0 15-09-2003 17:47
mp3 data cd in right order!! Twat-in-the-hat Media Files 1 07-09-2003 04:42
Do Not Order From Modchip.com!!! shawn PS2 Games 20 05-04-2003 09:45



All times are GMT -7. The time now is 20:40.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com