[SDL] Timed functions.

Mattias Engdegård f91-men at nada.kth.se
Sun Apr 23 11:09:57 PDT 2000


> I want a function to be executed 50 times per second (it is the
> function that updates the keyboard array and screen for my
> emulator) and I don't know how to do this under SDL... ¿Must I
> use a separate thread with a wait like SDL_Delay into it?

Don't you want the refresh interrupt linked to the emulation speed?
A Speccy is so simple that most people prefer to do a cycle-exact emulation,
and I suppose that you could count T-states instead?




More information about the SDL mailing list