Final Fantasy 7 > FF7 Tools

[FF7] Preliminary fix for ff7music delay problems [FF7 lessdebug]

<< < (2/4) > >>

dziugo:

--- Quote from: Aali on 2006-07-23 23:12:23 ---(...)freeing it before the program terminates is just a waste of cpu
--- End quote ---
True. It's also a good habit.


--- Quote from: Aali on 2006-07-23 23:12:23 ---i'm not sure what you mean by the "calculate the length of the strings..." though
--- End quote ---
Hmm... Can't post your code obviously, but you're using something like:

--- Code: ---strncmp(searching_for, another_possible_string_from_ff7, strlen(searching_for));
--- End code ---
or

--- Code: ---i=-1;
while(searching_for[++i]);
strncmp(searching_for, another_possible_string_from_ff7, i);
--- End code ---
The length of the searching_for string (the one from the config file), doesn't change. You don't have to calculate it... 1980928(?) times :P

dziugo

Aali:
yeah, its a good habit, but since this app will be running in a known environment, who cares? not me, quite obviously  :-P

about the strlen calls, thats very true
i didn't want to do that originally, it just happened to be the easiest way (code-wise)

either way, its a one-time thing, its not like you need to patch your ff7.exe's in realtime  :-P

good point though, i might just update it once i get back on my main pc

dziugo:

--- Quote from: Aali on 2006-07-24 00:36:34 ---either way, its a one-time thing, its not like you need to patch your ff7.exe's in realtime  :-P
--- End quote ---
True :P

Anyway, I tried it... Run FF7, and there were no delays. I reverted to unpatched ff7.exe, and... Still no delays. Any specific point at which the delay is noticable? I tried field -> battle, worldmap -> battle and field -> worldmap, "no luck".

I can also wrap up a YAMP patch if you still don't want to make (heh, you've just made) another patching environment (although I still don't have any idea how this could be coded nicely).

dziugo

Aali:
the two locations i used to test it was a save in wall market, dressed up as a girl, where i would get enough of the "video memory" messages to induce a 2-3 second delay
the other is the boss after the highway chase where i got loads of "set volume" for 10-15 seconds

i'm sure there are a lot of other places like that though, thats just the two i knew i could reproduce easily

if you can (and want to) make a YAMP patch out of it, that would be nice
there's definatly way too many patching environments out there, i had a hard time to come up with a (semi-)unique name for the backup file  :-P

zero88:

--- Quote from: dziugo on 2006-07-23 22:40:16 ---I don't see a reason why it would increase the delay. Also, make sure the plugin you're trying to use, is actually working (use unmodded ff7.exe, so you're sure it's not because of this fix).

--- End quote ---

Well, I don't know why it would, either. But it still runs delayed and choppy. I started over with a brand-new ff7.exe and it's still the same. The fix, I guess, doesn't do anything.

But that was just for wave output. Direct sound output still won't work, and maybe that's because of FF7Music...? I could try direct sound output without this fix and see what happens...

EDIT: ARGH. FF7Music, flat out, refuses to work with me on my computer with direct sound output. It gives me an error, stating that it "Could not set cooperative level". What does that mean?

I've tried nearly every other output plugin and they don't seem to cooperate well with FF7Music. It could be that I am using miniPSFs, though, and the output plugins may not support those very much.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version