Virtual-Jaguar-Rx icon indicating copy to clipboard operation
Virtual-Jaguar-Rx copied to clipboard

VJ runs at 60 FPS in NTSC mode, 30 in PAL mode

Open ericde45 opened this issue 2 years ago • 2 comments

when running virtualjaguar --ntsc, fps are 60 running virtualjaguar --pal give 30 fps even when running virtualjaguar without any program/rom

ericde45 avatar Mar 20 '22 06:03 ericde45

Thank you to have report this issue. It is also present in the original VJ (checked with vj-20160613-win64, and 2.1.2).

djipi avatar Mar 20 '22 09:03 djipi

Investigation provided additional clues.

  • The fps reports slightly more than 60 fps in NTSC -- This is due to the timer in charge of the main loop, value should be 16.6 but timer needs an integer, so 16 is used as value.
  • The test in PAL shows main loop takes a significant amount of time in each loop -- Ticks calculus should use a value of 20 but, got a values range between 0x1a to 0x24 instead.

djipi avatar Jan 15 '24 10:01 djipi