Quote from: Baronius on September 28, 2008, 10:32:41 PMI checked them again and as far as I can see, they just seem to be temporary files related to Sound Card drivers or something like that. When the characters move, 2-3 such file handles are open and then immediately closed.Were the ambient sounds on(not turned to zero), as they do real hazards for fps counts if there is an error in their assignments in one or more of the mods, as the behavior would suggest it.

QuoteDid 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).RAM usage is approximately constant, cca. 110-115 MB. Before loading the savegame, it's about 50 MB.
QuoteI checked them again and as far as I can see, they just seem to be temporary files related to Sound Card drivers or something like that. When the characters move, 2-3 such file handles are open and then immediately closed.QuoteThe game shows some additional activity (that can be monitored) during the movement of the party, but I didn't examine it (if I remember correctly, they were some memory sections or temporary files created -- perhaps some DirectX stuff).
MMIO mapping of animation files? The engine used for The Broken Hourglass does this to reduce RAM usage, for instance.
QuoteIt does it from some continously running script I suppose, considering the very high frequency of accesses to the same set of files. It's interesting though that about a week ago, I removed the SPCL files in question from the Override, and as far as I can remember, SOS-BIF.bif (or something of similar name) accesses appeared instead, so the chitin.key entries for those eleven spcl spl files point to the SOS-bif (Shadows over Soubar?) -- as far as I can remember (I haven't checked chitin.key).QuoteIt does but just the revised HLA's and Universal Lesser Mage Robes.
It's the Revised HLAs which access spcl* lots of times.
Quote from: Marupal on September 28, 2008, 06:10:27 PMIt does but just the revised HLA's and Universal Lesser Mage Robes.It's the Revised HLAs which access spcl* lots of times.
QuoteThe 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.Perhaps it's related to disk speed.
QuoteMaybe someday they'll release the source code and everything will make sense then :wacko:Doubtful, Bioware is now a property of EA.
Quote@The BiggIt does but just the revised HLA's and Universal Lesser Mage Robes.
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).
Quote@BaroniusThat one is from BGT. Couldn't find who the particular author of "Elminster holding the staff" was.
By the way, the BWP main screen/menus are very nice. Who made it? Really nice work.
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 startsThe 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 BiggThat 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:
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).
Quote from: Baronius on September 27, 2008, 07:42:52 PMI loaded an earlier save game (in Chateau Irenicus), and I experienced stutter too. When I command the party to move to a point, the game stutters, and after seconds, the party usually appears at the destination point. Reason: unknown from these tests. Nothing seems to access the WAV files in Override meanwhile, by the way.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).
QuoteIt's interesting though (at least to me, I didn't know it earlier) that when the party is moving, the game accesses 11 SPCLxxx.SPL (= innate abilities, HLA abilities) files, very many times, i.e. with a high frequency (I didn't measure whether they correlated with the AI updates, but as far as I remember, there were hundreds of accesses in a few seconds, always the same sequence of certain SPCL files). I doubt this causes the stutter, it's just an interesting thing I noticed.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).
QuoteThe game shows some additional activity (that can be monitored) during the movement of the party, but I didn't examine it (if I remember correctly, they were some memory sections or temporary files created -- perhaps some DirectX stuff).MMIO mapping of animation files? The engine used for The Broken Hourglass does this to reduce RAM usage, for instance.
QuoteBy the way, the BWP main screen/menus are very nice. Who made it? Really nice work. :thumb:Unless BWP has GUIs of his own, each of the 'large mods' adds its own main screen to a setup-gui.tp2 mod (which is written on the fly each time you install a new mod with a gui). Thus, looking at the comment string in weidu.log for that file, you can figure out which mod is it from (and hopefully, from the readme, the author of said GUI).
Quote from: Marupal on September 19, 2008, 03:57:38 PMNI doesn't use Weidu to accomplish thingsNo, it doesn't.
Quote from: Marupal on September 12, 2008, 07:41:58 PMIt's good to know that the scripts aren't responsible for FPS stutter. Thanks.Well, it's possible (it's known that Improved Anvil has FPS stutter if you have Bottomless Bags) - however, my script isn't made to deal with those, it's made to deal with a specific kind of character stuttering (as opposed to game stuttering as we're discussing here).
Quote@The BiggIt's good to know that the scripts aren't responsible for FPS stutter. Thanks.
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.
Quote from: Marupal on September 11, 2008, 03:36:45 PMEt tu The Bigg?The last time I had problems it was two years ago. I don't have the stuff available any more.
QuoteI'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.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.
Quote@BaroniusOK. 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?
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.
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:
Quote from: Baronius on September 10, 2008, 11:09:52 PMThe 32,000 non-wav files only used up ~500 MB for you, while even the half of the WAV files is 1.1 GB! This means that the whole thing might not necessary have to do with WAV files, but rather the size of Override (earlier TheBigg had a similar note somewhere, i.e. that the problem arises if the Override size is comparable to the RAM -- however, I don't remember if there has been an explanation for it too).After that (early) post, I tried to reproduce the problem on my machine (by using /maxmem=512), but failed without lots of WAV space.
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.When 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).

Quote from: Marupal on September 10, 2008, 08:22:29 AMOf course you dropped all the wavs in your override and didn't have any problem. :huh:As I've written, I played only for minutes, the game didn't access more than a few tens of WAV files at most. It was a quick, incomplete test.
Quote from: Marupal on September 10, 2008, 08:22:29 AMSame 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.This is because BG2 has a GUI thread, which runs concurrently with the scheduler/engine thread (examining BG2's scheduler is another topic I would be interested in, if I had time). The stutter (unsurprisingly) happens in the engine thread.
QuoteHere'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.The 32,000 non-wav files only used up ~500 MB for you, while even the half of the WAV files is 1.1 GB! This means that the whole thing might not necessary have to do with WAV files, but rather the size of Override (earlier TheBigg had a similar note somewhere, i.e. that the problem arises if the Override size is comparable to the RAM -- however, I don't remember if there has been an explanation for it too).
Quote@The BiggSame 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.
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.
Quote@BaroniusThat's interesting.
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).
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.
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.