From: | Sam Jordan |
Date: | 11 Dec 99 at 16:44:18 |
Subject: | Re: [warpup] Re: GetMsgPPC arguement. |
Am 11-Dez-99 schrieb Tim Hanson:
>-> WarpOS has its own message system and its own message ports, which work
>-> independently from AOS/68K, therefore you can't use the PPC message
>-> functions to query a 68K message port. You would have to call exec/GetMsg
>-> to do that.
>ARGGH! This leads to another context switch in my central loop. Is it
possible
>to allocate a PPC message port and attach it to a window? No I doubt it. Any
>suggestions as to how I can get key presses without going to 68K.
Impossible without hacking the hardware. In a PPC program there are always
a minimal amount of context switches, usually this is event handling,
graphics refresh and sound refresh. You simply can't avoid that.
Besides that, as mentioned by other people, you should compile the whole
event handling loop for 68k. That's a quite general approach for solving
context switch problems: collect several context switches into one function,
then compile it for 68k.
bye