Re: [hatari-devel] User input during fast-forward |
[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]
Again: I think you might be interested in how Previous handles this. Previous has a mode that is called „realtime mode“. In this mode some delayed interrupts are coupled to the host’s real time instead of the emulated machine’s CPU cycles. This is especially true for the emulated timers which are used by the guest system to calculate double click intervals and similar things. This makes it possible to run at arbitrary speeds without messing with those timers. Double click works at fast forward speed and the clock ticks normally. As a little extra we only run at full speed while the CPU is in user mode. This makes it possible to save host CPU time while the guest system is idle. Not sure this works with Atari, but it is only an extra anyway. I appended a short video to demonstrate the feature. You can see an application starting while the clock ticks. In the status bar you see how the speed varies while code is executed in user mode. For details have a look at cycInt.c, host.c and includes/m68000.h: https://sourceforge.net/p/previous/code/HEAD/tree/trunk/src/ Unfortunately this is based on the old cycInt.c from Hatari. So some porting efforts will be required. But it might solve your problems. |
Attachment:
demo.mp4
Description: video/mp4
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |