Menu

#1582 xpet will not run at NTSC speed

v3.6
closed-wont-fix
None
xpet
2021-12-30
2021-10-12
No

xpet (at least on Windows version 3.5) defaults to PAL timing, but there is no GTK3 option to allow selection of NTSC, and running as "xpet -ntsc" still runs with PAL timing. This is not true of (for example) x64sc/x128. Documentation (https://vice-emu.sourceforge.io/vice_7.html) suggests the command-line switch should work, at least.

Discussion

  • gpz

    gpz - 2021-10-12

    The timing depends on the model that was selected.... are you sure the model you are using existed with the respective timing?

     
  • Rodney Hester

    Rodney Hester - 2021-10-12

    100%. The 4032 was absolutely created and sold in the US, yet:

    xpet.exe -ntsc -model 4032

    still refreshes at 50Hz.

     
  • gpz

    gpz - 2021-10-12

    i'll have to check when and why this was removed... i dont recall

     
  • Rodney Hester

    Rodney Hester - 2021-10-14

    Playing around with it, I just hacked the pet driver to remove ALL vestiges of references to PAL, so everything is NTSC (including kbdbuf_init, machine_change_timing, MachineVideoStandard, and autostart_init). Despite that, the TOD clock (wherever it's sourced from) still runs with PAL timing (which is, ironically, what made me look at all this in the first place - CLOCK! from CURSOR #4).

    Clearly the TOD is initialized in some other way, still digging into that, but yeah - this driver is hardcoded in many places for PAL, and it's not at all clear why (I didn't think the PET was even that popular in Europe).

     
  • gpz

    gpz - 2021-10-14

    if i understood things right, it entirely depends on how the ROM initializes the CRTC - so all you need to do is use the US ROMs (and that also explains why some of the models use different timing - it's just whatever the roms we provide set up)

     
  • Rodney Hester

    Rodney Hester - 2021-10-14

    Confirmed - I'm so accustomed to the handling of C64 ROMs in VICE that are patched on the fly that it never occurred to me that it could be the editor ROM itself. Sure enough, VICE ships with only PAL editors. ;) I just assumed that the 4032 (being a NTSC machine exclusively, as far as I know) would have the correct one. Sourced the proper editor and everything immediately flipped over to proper refresh and timing entirely on its own (just as it should, given how the hardware and editor ROM work!). Mea culpa. =) Please close as WONTFIX.

     
  • gpz

    gpz - 2021-10-14

    The C64 ROMs don't have to be patched for PAL/NTSC in the first place, it's the same ROM for both :)

     
  • gpz

    gpz - 2021-10-14
    • status: open --> closed-wont-fix
     
  • Rodney Hester

    Rodney Hester - 2021-10-14

    Sorry, wasn't referring to PAL/NTSC switching, was talking about the auto-patching for various C64 KERNAL ROM versions. The dizzying number of 'valid' "official" PET ROM pairings will make that all but impossible, I think, so I understand why things are as they are (though it might be nice to at least ship with 60Hz ROMs, even if they aren't the default).

    Come to think of it, though, doesn't that make the -ntsc/-pal flags (and MachineVideoStandard, for that matter) superfluous for PET?

     
  • gpz

    gpz - 2021-10-14

    indeed, i guess someone simply forgot to remove that

     

Log in to post a comment.

MongoDB Logo MongoDB