Post subject: How do a calculate frames per second?
adelikat
He/Him
Emulator Coder, Site Developer, Site Owner, Expert player (3574)
Joined: 11/3/2004
Posts: 4754
Location: Tennessee
I'm using FCEU if that makes a difference
It's hard to look this good. My TAS projects
Skilled player (1417)
Joined: 10/27/2004
Posts: 1978
Location: Making an escape
FCEU runs at 60 FPS, unless you're in PAL mode. Then it's 50.
A hundred years from now, they will gaze upon my work and marvel at my skills but never know my name. And that will be good enough for me.
Editor, Active player (297)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Ferret Warlord wrote:
FCEU runs at 60 FPS, unless you're in PAL mode. Then it's 50.
Precisely, FCEU runs at 60.09982293844223 fps when in NTSC mode and 50.00698089599609 fps when in PAL mode. But unless the exact value matters, listen to Ferret, not me.
Former player
Joined: 4/16/2004
Posts: 1276
Location: Uppsala, Sweden
Where do you find these numbers? I mean, the exact numbers for the fps. I find it pretty cool, even though I barely understand it ;)
/Walker Boh
Editor, Active player (297)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Walker Boh wrote:
Where do you find these numbers?
In the usual way - reading the source code.
int32 FCEUI_GetDesiredFPS(void)
{
  if(PAL)
   return(838977920); // ~50.007
  else
   return(1008307711);  // ~60.1
}
Divide those strange looking numbers by 2^24 (16777216) to get a more familiar looking ones.
Former player
Joined: 4/16/2004
Posts: 1276
Location: Uppsala, Sweden
Aha. That's smart. Thanks.
/Walker Boh
Joined: 10/3/2004
Posts: 138
Those exact values really came in handy for me. It allowed me to finally completely fix my audio sync issues when trying to make DVD video of FCEU output. Thanks a whole bunch, Bisqwit.