Red frame counter in Gens_r57shell_mod_r665

Ask anything your want about Megadrive/Genesis programming.

Moderator: BigEvilCorporation

Post Reply
tryphon
Very interested
Posts: 316
Joined: Sat Aug 17, 2013 9:38 pm
Location: France

Red frame counter in Gens_r57shell_mod_r665

Post by tryphon » Sun Sep 13, 2015 8:43 pm

Hello,

a simple question I haven't found the answer in the txt with the archive.

I use Gens_r57shell_mod_r665, downloaded on RHDN, and in the top-left edge of the screen there is a counter, that (I suppose) shows the number of frames since the loading of the ROM, in white.

Sometimes, this number is in red. What does it mean ?

I ask that because it occurs in some specific situations of the game I code, and if it means something like missed VBLANK, it can give me hints for the routines I must optimize.

Thank you :)

r57shell
Very interested
Posts: 478
Joined: Sun Dec 23, 2012 1:30 pm
Location: Russia
Contact:

Re: Red frame counter in Gens_r57shell_mod_r665

Post by r57shell » Mon Sep 14, 2015 10:20 am

same like in original gens-rerecording
it's so called lag-frames.
actually, it's only some kind of detection of lags. It has false positive cases.
It does check whether was joypad read or not.
Red counter means that in previous (I'm not sure) frame joypad wasn't checked (read).
Image

tryphon
Very interested
Posts: 316
Joined: Sat Aug 17, 2013 9:38 pm
Location: France

Re: Red frame counter in Gens_r57shell_mod_r665

Post by tryphon » Fri Sep 18, 2015 2:29 pm

Thanks for answering !

So I guess there will be optimizations to be made :twisted:

Post Reply