Qhimm.com Forums

Miscellaneous Forums => Scripting and Reverse Engineering => Topic started by: jeffdamann on 2010-06-02 07:16:17

Title: Why exactly is running aali's driver with uncompiled lgp's slower?
Post by: jeffdamann on 2010-06-02 07:16:17
Topic.
Title: Re: Why exactly is running aali's driver with uncompiled lgp's slower?
Post by: nikfrozty on 2010-06-02 07:29:22
By uncompiled you mean running the game with the direct folder instead of the lgp's??
Title: Re: Why exactly is running aali's driver with uncompiled lgp's slower?
Post by: Gemini on 2010-06-02 07:39:01
Because packed archives are usually faster to access on FAT/32 and NTFS. The game has only to open a file handle and jump around it, while separate files means separate handles and additional processing for opening those handles.
Title: Re: Why exactly is running aali's driver with uncompiled lgp's slower?
Post by: sithlord48 on 2010-06-02 13:52:01
Because packed archives are usually faster to access on FAT/32 and NTFS. The game has only to open a file handle and jump around it, while separate files means separate handles and additional processing for opening those handles.
100% correct. this would explain why i don't notice the slow down on my machine with an ext4 / drive , cause i was just about to say "what slowdown" ....
Title: Re: Why exactly is running aali's driver with uncompiled lgp's slower?
Post by: pyrozen on 2010-06-02 19:16:26
would it be possible to make the driver open archived files such as ZIP or RAR? If so it would make installing mod packages very easy, and allow the same quickness as the default LGP method. Not sure if it would be the same though, someone with more knowledge should speak up.

lee
Title: Re: Why exactly is running aali's driver with uncompiled lgp's slower?
Post by: Aali on 2010-06-10 23:10:27
zip/rar archives are not optimized for random file access. LGP archives have a big lookup table based on the first two characters of the filename, which means that to find file X, you only need to search all filenames that start with the same two characters as X, other archive formats not intended for games do not usually have these kind of mechanisms.