Author Topic: Credits Screen Frame Limiter  (Read 4156 times)

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Credits Screen Frame Limiter
« 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.

nfitc1

  • *
  • Posts: 3008
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: Credits Screen Frame Limiter
« Reply #1 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. ;)

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: Credits Screen Frame Limiter
« Reply #2 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. 

nfitc1

  • *
  • Posts: 3008
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: Credits Screen Frame Limiter
« Reply #3 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.

nfitc1

  • *
  • Posts: 3008
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: Credits Screen Frame Limiter
« Reply #4 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.

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: Credits Screen Frame Limiter
« Reply #5 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.

halkun

  • Global moderator
  • *
  • Posts: 2097
  • NicoNico :)
    • View Profile
    • Q-Gears Homepage
Re: Credits Screen Frame Limiter
« Reply #6 on: 2014-07-30 17:48:27 »
See my post here over why the frame counters are a mess.