Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Marupal

#1
Modder's Workshop / Biffing discussion
September 28, 2008, 06:10:27 PM
Quote@The Bigg
Does the weidu.log contain Refinements? I know Refs does lots of spell tricks under the hood (I don't think this causes issues by itself, since I played the mod on a P4 1.6Ghz with 256MB of RAM).
It does but just the revised HLA's and Universal Lesser Mage Robes.

Quote@Baronius
By the way, the BWP main screen/menus are very nice. Who made it? Really nice work.
That one is from BGT. Couldn't find who the particular author of "Elminster holding the staff" was.

QuoteThe initial startup time wasn't so bad for me, the game loaded for cca. 90 seconds. It loaded for you much longer, Marupal, didn't it? Reason: BG2 lists all files in Override when it starts
The computer I used was even older->AMD 2.6 768 MB RAM. I'm surprised it loaded that fast for you when it takes quite a few minutes for me. Will check next time how long it takes unbiffed.

Quote@The Bigg
Did you check RAM usage and/or open handles? My wild theory is that, when the game opens the dialog.tlk, it loads all WAV files referenced in the tlk in RAM (or keeps the file open, either for fast referencing or because of a coding error).
That would make sense.  It's pretty strange that having 30,000 files =500MB biffed doesn't make much of an impact on performance (game initialization does speed up though) but 6,000 files=2.2GB biffed takes away from the "teleportation" stutter.  Maybe someday they'll release the source code and everything will make sense then :wacko:
#2
Modder's Workshop / Biffing discussion
September 19, 2008, 03:57:38 PM
Just biffed the tis files using NI and got the same corrupted graphics. I know I've read about DLTCEP being a GUI front-end for Weidu but NI doesn't use Weidu to accomplish things, does it?
#3
Modder's Workshop / Biffing discussion
September 12, 2008, 07:41:58 PM
Quote@The Bigg
It's two different kinds of stutter: here we're discussing low FPS, whereas that script is about characters who stop their action for no particular reason.
It's good to know that the scripts aren't responsible for FPS stutter.  Thanks.
#4
Modder's Workshop / Biffing discussion
September 11, 2008, 03:36:45 PM
Quote@Baronius
The best would be if I could get a copy of your installation (with all the necessary files to build the same installation, i.e. chitin.key and the mod files, including the WAV files; but excluding original copyrighted game files, of course). I know it's gigabytes, so I don't suppose you would want to upload it e.g. to BWL. It's just an idea.
OK.  I'll zip it up today.  It really is going to be big though.  6 GB in the data folder and 2.7 gb override folder.  You'll need the dialog.tlk and the chitin.key.  I think that should be everything you need to drop it onto a normal BG2 install to get it to work.  Can you think of anything else?
Where would you like me to upload it to.  This is a BGT installation and it includes all the BG1 files so someplace private would be appropriate to keep from violating the copyright.  I already know you have both BG 1&2.  Et tu The Bigg?
QuoteBy the way, does this WAV bif/non-bif problem arise for others too (possibly without BWP), or did both of you experience it only with BWP? It might be a BWP-specific issue, perhaps an error in BWP somewhere.
I've seen a few other posts about stutters.  The Bigg also wrote a util to test script blocks to see if they are culprits.  I've never experienced stutter without mods installed.  
QuoteWhen I experienced it (two years ago I believe) there wasn't even a BWP - we still had the (non-WeiDU) BP-BGT-NeJ compilation from plaguezone (and I didn't have that either).
I also had the same problem then but the BWP install is much worse.  Still very much worth playing though.  Had to add that. :thumb:
Let me know where to upload this (it'll probably be the end of the day before I can upload at the earliest) and maybe I'll break it up into a couple of files.
#5
Modder's Workshop / Biffing discussion
September 10, 2008, 08:22:29 AM
Quote@The Bigg
Basically, I had progressingly worse stutter the more animations I had (E.G. having all six party members walk across the screen), from as soon as I started a new game. Sounds would play normally, but the screen would have a very low frame per second; if I paused the game (or didn't have characters walking) the screen would update without noticeable lag.
Same here.  From the minute that the game was loaded.  There's no stutter on the menus, ever.  i.e. save, character creation, backpack, journal, etc.  Framerate is probably close to 0.2 fps.  Hitting pause takes around 2 seconds to take effect.  
Quote@Baronius
BG2 doesn't seem to have more than 200-250 open handles at the same time, and only a small (< 10) percent of these are file handles (most of them are for the constantly used bif files and music). It didn't keep open the handles of WAV files it played from the Override, they were immediately closed after use, just like .itm, .spl etc. files. Of course, the fact it correctly closes handles doesn't mean it also frees certain objects (this is why some memory profiling would have been handy). On the other hand, as far as I've seen, it keeps open the handles of music files (even if the music isn't played anymore).
That's interesting.  
Here's another strange thing about it: configuration->game autopause on mini map->no.  No stutter while watching the character cross the mini map.
QuoteFurthermore, what kind of WAV files are these (i.e. the most of your 2.2GB), e.g. dialogue sounds of mods?
It appears to be two thirds related to dialogue, but there's quite a bit that I can't identify what mod installed it or what it's purpose is (except to play. )
QuoteQuick question: did you guys check the memory usage of BG2 during the stutters? (Sorry if it's a stupid question and you would have already mentioned it if this was the case.) For example, you can use the Task Manager's process list for it.
I'll have to check into this later today.
It doesn't appear to be memory leak related though.  I've not had the game crash on me yet just because it had been running too long and I've left it running for days.  I wish Internet Explorer behaved so well.
QuoteIt didn't keep open the handles of WAV files it played from the Override, they were immediately closed after use, just like .itm, .spl etc. files.
Maybe this is the source of the problem.  Maybe the .itm, .spl, etc files don't have an impact on speed because they are (usually) so small and don't require much in memory allocation but wavs do require more in the loading and unloading and logic to determine when that ambient (or whatever) needs to be unloaded.  Of course you dropped all the wavs in your override and didn't have any problem. :huh:
QuoteI also forgot to ask it from you and TheBigg: is the stutter due to WAV files eventually caused by intensive I/O operations (i.e. your hard disk LED is active)?
Not much more activity than would be expected there for me.
#6
Modder's Workshop / Biffing discussion
September 09, 2008, 06:18:19 AM
QuoteIt doesn't require memory mapping to read just a certain part of a large file to memory, so I'm sure it's used for other reasons in BG
I really can't confirm whether BG does file-mapping or not.  Somebody may have been making it up.  It was just something interesting that came up.  I had never heard of it before then.  
Quotee.g. it can't just partially deserialize an item
"Deserialize"?  Deserialize:verb->Something I had to look up.  Tis and wav files don't need to be deserialized though.  Even the compressed versions are done with zlib so will do streaming decompression.  Nothing but opinion here: having all the wavs in one file (or very few files) and only needing handles to those very few files would be easier to maintain than having to account for the possibility of hundreds (or thousands maybe) of handles being open and in use (ambients, cre sounds, npc sounds, mus, etc.)
Here's what I am seeing though.  Going through and biffing the BWP install-> 44,000+ files, 2.7 GB override folder, 2.2GB used by wavs.  Biffing the 32,000 (non-wav) files had no noticable impact on speed.  I haven't touched the bmps, bams, spls, pros, or 2das (cumulative 6000+ files there.)  I'm currently half way through biffing the wavs and immediately see a major change in game speed.  Tried all kinds of different settings in configure options including pathfinding.  Nothing had any noticable impact except biffing the wavs.  It was so bad that you could click on a destination and the game would look like it locked up and wouldn't do anything again until it showed you at the destination.  Really bad stutter.
Maybe next time I'll start by biffing the wavs first and see if get that same increase immediately.
#7
Modder's Workshop / Biffing discussion
September 08, 2008, 06:43:01 AM
Quote@Baronius
Generally, you may have a point there (for example, it would also mean that certain mod types -- i.e. with lots of files of a particular type -- are capable of causing more performance issues than other mod types), however, what's the difference then between bif storage and Override?
I don't remember where I heard this but somebody claimed that the BG engine(s) didn't use normal file i/o.  Instead they used file-mapping (memory mapped files) to pull off the ability to have so many large biffs in memory and still be able to run on a small system (the first computer I installed BG on only had 128 meg.)  Don't know if they knew what they were talking about but this makes some interesting reading:
http://msdn.microsoft.com/en-us/library/ms810613.aspx
#8
Belching Dragon Tavern / RSS feed
August 25, 2008, 10:25:46 AM
:thumb:
Thanks
#9
Belching Dragon Tavern / RSS feed
August 25, 2008, 08:31:31 AM
Is there a way to get rss feed on all the forum posts and not just the "news & services" section?
#10
Can I register 'P@' please?