Qhimm.com Forums

Miscellaneous Forums => Scripting and Reverse Engineering => Topic started by: DLPB_ on 2014-07-27 12:33:14

Title: Credits Screen Frame Limiter
Post by: DLPB_ on 2014-07-27 12:33:14
Does anyone (and well, I am looking at NFITC1 here, aren't I? ;) ) have any idea how to limit the opening credits?  I've had a good go and come up short.  The main function is 7a7a33.  I can change the delay between texts with code around 7A6FD4

But the actual limiter doesn't seem to be working right.  It will always run to vsync (if on) and is not limited when vsync is off.  Meaning 5000fps on my comp.  Everything else in PC game now seems to have some limiter or another, but not this.
Title: Re: Credits Screen Frame Limiter
Post by: nfitc1 on 2014-07-27 19:07:34
...Meaning 5000fps on my comp...

Maybe it's just me, but THAT sounds like the target FPS for opening credits. ;)
Title: Re: Credits Screen Frame Limiter
Post by: DLPB_ on 2014-07-27 20:23:04
Maybe it's just me, but THAT sounds like the target FPS for opening credits. ;)

It fluctuates....  my older comp was much less than 5000. 
Title: Re: Credits Screen Frame Limiter
Post by: nfitc1 on 2014-07-28 17:20:14
Well, I found the hold and fade out.
0x7A5C24 increments the held time at 0xF4F33C. When it reaches 91 the credit starts fading and by 256 the credit disappears.
Title: Re: Credits Screen Frame Limiter
Post by: nfitc1 on 2014-07-29 19:37:07
I'm starting to suspect the limiter is in 0x66E272. I also feel this is the menu drawing method that maps a menu's texture to a polygon. So each credit gets treated like an 8-poly count menu structure that is refreshed half as often. That might be in the data for the credits themselves rather than a quirk of the function.
Title: Re: Credits Screen Frame Limiter
Post by: DLPB_ on 2014-07-29 19:39:12
Well according to Aali, he added a frame limiter for the battle swirl... so perhaps this is another area that needs to have it coded in.  This game is a bomb site to be honest.  My head spins whenever I look at all this limiter code and timers... it all seems to just be a fat mess.
Title: Re: Credits Screen Frame Limiter
Post by: halkun on 2014-07-30 17:48:27
See my post here (http://forums.qhimm.com/index.php?topic=15414.msg216339#msg216339) over why the frame counters are a mess.