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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26-10-2005, 19:24
CrAcKo CrAcKo is offline
Junior Member
 
Join Date: Oct 2005
Location: Netherlands, The
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
CrAcKo is on a distinguished road
D3 RoE - extracting pk4's in order to improve FPS

I extracted the PK4 files in the d3xp folder, hoping it would improve FPS, but it doesn't seem to work like it does for Doom3. There's no difference before and after I extracted em.

I'm I using the wrong method on this one, or isn't it just possible?

- CrAcKo
Reply With Quote
Sponsored Links
  #2  
Old 27-10-2005, 01:00
Morglum007 Morglum007 is offline
Registered User
 
Join Date: Oct 2001
Location: Madrid/Spain
Posts: 367
Thanks: 0
Thanked 0 Times in 0 Posts
Morglum007
If package is enough huge and have compressed files inside, decompressing them will improve game experience, but if package havent so compressed files ( just like a "tar" file), then uncompressing them will not succeed, even being a very huge file. It is a developer strategy for saving space, or to cover most market computers. Files are compressed into another files (pk4, wad, pak, whatever) only to avoid PC to slowdown searching sources when playing game. Making them to be together in same memory area (ram or swap) will make game to execute faster. Thats a very important development when creating a videogame. If that made D3 to be "slow" in a lot of systems, they have solved this already in newer expansion. U will need to find another workarounds to execute faster...sorry.

Just a how to.

Good luck!
__________________
Morglum007 out
Reply With Quote
  #3  
Old 27-10-2005, 01:21
CrAcKo CrAcKo is offline
Junior Member
 
Join Date: Oct 2005
Location: Netherlands, The
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
CrAcKo is on a distinguished road
The method I described was meant to work for all the D3 based games. I did the same thing for Quake4... it just won't work for RoE. It does make load times longer but improves FPS alot, since during the loading, everything is pretty much preloaded. RoE is just an expansion, so I don't understand...
Reply With Quote
  #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
  #5  
Old 27-10-2005, 07:03
CrAcKo CrAcKo is offline
Junior Member
 
Join Date: Oct 2005
Location: Netherlands, The
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
CrAcKo is on a distinguished road
I got a amd xp 2500+, 512 mb ram, with a 9600 xt radeon.... and even though it eats lots of space on your HD, extracting the pk4 helps for me to gain more FPS... Loading time takes longer, but it doesnt matter as long as there won't be no lag anymore... Because it is compressed, loading time goes faster... with the exception it keeps loading when the game has finished loading. Low end system users may want to try this themselves.

Example, after a door opens, my HD starts loading like mad, just to load what was actually behind that door (a monster...). With the files uncompressed, I wait longer to load, to gain alot more FPS.

I'm not experiencing any illusions, I'm looking at facts.
Reply With Quote
  #6  
Old 27-10-2005, 07:38
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
@CrAcKo: Okay, you turned solution #3 from my list into solution #1. Now, if you have some time for testing around, try this... For each original .PK4 file, uncompress it into an empty directory and then recompress it, with Info-ZIP (http://www.info-zip.org ), recursively, without compression (!) into a ZIP archive and overwrite the .PK4 file with the ZIP archive. (Make sure to backup your original game files, of course. ) The proper command line for this is zip -0r whatever.pk4 *.*. This is solution #2. How much does game play change with this? I'm really interested in your results. Happy gaming anyway!
__________________
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
Reply


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 16:05.


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