Final Fantasy Hacktics

Modding => War of the Lions Hacking => Topic started by: joseweig on August 02, 2010, 01:34:51 pm

Title: Fix WOTL effects lag issue?
Post by: joseweig on August 02, 2010, 01:34:51 pm
Hi everyone,

I am new to the forms and to fft hacking. I wanted to know if anyone has attempted to hack fft wotl in order to fix the effects lag issue. Or if it is even posible.

Thanks.
Title: Re: Fix WOTL effects lag issue?
Post by: joseweig on August 02, 2010, 01:41:59 pm
I mean slowdown not lag. Sorry!
Title: Re: Fix WOTL effects lag issue?
Post by: ffta707 on August 02, 2010, 01:45:47 pm
I thought of that. I don't play WOTL because of that reason, that and firmware and all of that. But it would be some sort of assembly hack. Maybe some of our ASM hackers could find a static byte that changes it. I don't no why they would put that slowdown on it, if you ask me it makes the game unplayable.
Title: Re: Fix WOTL effects lag issue?
Post by: joseweig on August 02, 2010, 01:56:58 pm
yeah it definetely ruined it for me as well. I just read a thread where people where discussing this but the discussion ended in nothing :/

here: viewtopic.php?f=15&t=2673 (http://www.ffhacktics.com/forum/viewtopic.php?f=15&t=2673)
Title: Re: Fix WOTL effects lag issue?
Post by: ffta707 on August 02, 2010, 02:05:50 pm
I think it is definitely a possibility, but  it may take time. I'm not much of an ASM hacker if at all, but I might look into this. I would play WOTL again.
Title: Re: Fix WOTL effects lag issue?
Post by: Kaijyuu on August 11, 2010, 12:38:07 pm
In all likelyhood it will require rewriting some routines. FFT (supposedly) was rebuilt from the ground up for the PSP and not just emulated, like some ports. Whatever routine draws the effects is probably really inefficient.
Title: Re: Fix WOTL effects lag issue?
Post by: ffta707 on August 11, 2010, 01:38:49 pm
We'll say that it was bad on square's part. I'm not sure if the asm hackers here are even willing to try it. It is probably a very tedious task, and would take  a lot of investigating.
Title: Re: Fix WOTL effects lag issue?
Post by: Wiegraf on September 12, 2010, 12:45:43 am
Everyone blows the lag out of proportion. I didnt care really at all. It was worth it to continue reading the beautiful script and I got used to the slowdown very fast. Now WOTL 1.3 is the only one I play.
Title: Re: Fix WOTL effects lag issue?
Post by: ffta707 on October 07, 2010, 09:49:45 pm
Really? I can't stand the lag, even though I did beat WOTL.

I re - thought all of this, and I just remembered ASM crashes WOTL so it's not possible yet, nor will it probably ever be possible.
Title: Re: Fix WOTL effects lag issue?
Post by: Mickey B on October 15, 2010, 06:27:29 pm
I don't even know what lag you're talking about. Maybe it's because I have a PSP slim (more ram) or maybe it's because I'm playing it off of my memory stick (reads like 4 times faster than the UMD). Regardless, it seems faster than the original to me.
Title: Re: Fix WOTL effects lag issue?
Post by: Argy on October 16, 2010, 10:23:59 am
Mickey,
I have the same configuration as you and its still slower than my psx version from 10 years ago! You notice in on the swordskills soooooo much. Nothing like waiting a couple of minutes for dark sword to work!
But if yours is working at speed then thats great for you, i am a touch jealous!
Title: Re: Fix WOTL effects lag issue?
Post by: Vanya on October 16, 2010, 10:50:55 am
Quote from: "ffta707"Really? I can't stand the lag, even though I did beat WOTL.

I re - thought all of this, and I just remembered ASM crashes WOTL so it's not possible yet, nor will it probably ever be possible.

If you are referring to how orgASM messes up WoTL, it isn't because of the ASM itself. The game can be hacked just like any other piece of software. The problems stem from the fact that the PSP version was re-programmed from scratch the internal code is different so the ASM hacks meant to modify the PSX caoe won't work because it is different from the code in the PSP version. It would be like trying to modify a 2010 Camaro with parts from a 1978 Camaro. They just aren't compatible.
Title: Re: Fix WOTL effects lag issue?
Post by: ffta707 on October 16, 2010, 11:55:35 am
Oh, so FFTorgasm doesn't work then? So if made from scratch, the ASM would work?
Title: Re: Fix WOTL effects lag issue?
Post by: Vanya on October 17, 2010, 10:47:04 am
Pretty much.
Title: Re: Fix WOTL effects lag issue?
Post by: Xifanie on October 17, 2010, 10:52:50 am
Hey guys! I figured how to solve this issue!

Set all abilities and reactions to effect FFFF (null)
Title: Re: Fix WOTL effects lag issue?
Post by: ffta707 on October 17, 2010, 07:40:12 pm
Quote from: "Zodiac"Hey guys! I figured how to solve this issue!

Set all abilities and reactions to effect FFFF (null)

LMAO
Title: Re: Fix WOTL effects lag issue?
Post by: Vanya on October 18, 2010, 11:04:18 am
Quote from: "Zodiac"Hey guys! I figured how to solve this issue!

Set all abilities and reactions to effect FFFF (null)

LOL! That was awesome! ^_^
Title: Re: Fix WOTL effects lag issue?
Post by: ffta707 on October 18, 2010, 07:46:23 pm
Quote from: "Vanya"
Quote from: "Zodiac"Hey guys! I figured how to solve this issue!

Set all abilities and reactions to effect FFFF (null)

LOL! That was awesome! ^_^

Agreed. Anyways, I guess what zodiac was trying to say, is that this won't happen anytime soon. UNLESS, you use his solution.
Title: Re: Fix WOTL effects lag issue?
Post by: karsten on October 26, 2010, 02:15:30 am
what about usingn 100% uncompressed spritesheets? the game "lags" or slowdowns on psp when tries to access a compressed part of a sprite... can you serve it already uncompressed?
Title: Re: Fix WOTL effects lag issue?
Post by: Xifanie on October 26, 2010, 06:56:43 am
Nope, karsten, unless you're talking about the SP2 files for monsters, spritesheets are uncompressed as soon as they are loaded in the VRAM. SP2 files are different because they are only loaded when necessary. The cause of this problem is definitely the effects.
Title: Re: Fix WOTL effects lag issue?
Post by: karsten on October 26, 2010, 08:55:26 am
so you mean that the lag is not due to decompression graphics, but just the effects? :shock:

If it lags while decompressing the effect can you feed the decompressed effect directly? psp Vram i way bigger than psx one, so it should fit in easily, right?

i guess it might be possible to asm hack the game so that it'll use decompressed effects or i'm completly off target and the lag is due to something else?
Title: Re: Fix WOTL effects lag issue?
Post by: Xifanie on October 26, 2010, 12:32:53 pm
This isn't about compression. Decompression of effects and spritesheets probably takes 0.001 second each.
And very few effects are compressed to start with; IIRC about 30-40. If you want to see yourself: http://www.ffhacktics.com/effects.php (http://www.ffhacktics.com/effects.php)
any effect with 128 or less height are compressed and paletted. All the other effects are 256 colors and not compressed.

It can't be a CD read slowdown either, because the game will not start drawing an animation until all the effect's data is loaded, which takes a fraction of a second too.

I don't know what the VRAM looks like for WotL when using effects. It shouldn't be trying to do too much stuff as the PSP is way more powerful than the PSX and WotL barely uses more VRAM than the PSX version.
Title: Re: Fix WOTL effects lag issue?
Post by: karsten on October 27, 2010, 02:06:18 am
then what is the reason? or we're still clueless? ?_?
Title: Re: Fix WOTL effects lag issue?
Post by: Archael on October 27, 2010, 04:39:22 am
WOTL is coded to run those effects at a fraction of the true FPS

it's running that way intentionally, it's not some bug square left in or some hardware limitation on the PSP

(I learned this from Sentinal Blade who told me back when he spent tons of time working with WOTL)
Title: Re: Fix WOTL effects lag issue?
Post by: karsten on October 27, 2010, 05:27:23 am
can't believe it's intentional. Must be an aftereffect or programming error! so you could change the code to run them fast? i doubt it...
Title: Re: Fix WOTL effects lag issue?
Post by: Archael on October 27, 2010, 12:21:58 pm
something in the code is making them play at a fraction of the original FPS, but your guess is as good as mine as to where we can change that

it's probably not as simple as swapping out 1 value

the slowdown is also not present on EVERY effect, it's just some of them, unfortunately the ones players spam the most

example of slow down:
fast forward to 3:13

fast forward to 7:55
Title: Re: Fix WOTL effects lag issue?
Post by: karsten on October 28, 2010, 02:10:07 am
i know it too well :)

mmmh lovely chalenges... should start again!
Title: Re: Fix WOTL effects lag issue?
Post by: PiotyrHB on March 03, 2011, 07:54:53 am
Actually I don't think WOTL is coded to run the effects slower so much as the vsync goes from 30 to 15.
Vsync works like this for those who don't know.

Set it to 60fps and for whatever reason it can't go at 60? Knock it down in half to 30. So the game goes at 30fps native and gets knocked to 15 on effects.
I noticed also that some spells that aren't suppose to be cast the way they are (Break spells with cross bows) break vsync and just make it go as many frames as possible thus making it go insanely fast.
I am not sure if that helps but that's my theory.