hadjiyia@cat3.cs.wisc.edu (Simos Hadjiyiannis) (11/27/90)
A couple of questions: 1. I have heard of a tech note on speeding Copybits, but can't seem to locate it. Does anyone know where I can get it from (I heard that it was #277, but there is no such tn at apple.com...), or could mail me a copy? Please? Pretty please?... 2. I am writing an arcade game for the Mac ( for the past four months..) and I was wondering if there is anything wrong with NOT fetching events. I can read the keyboard using GetKeys and the KeyMap structure, so I don't really need GetNextEvent (or WaitNextEvent...) & it DOES speed up the code. Finding out if a menu has been selected is one problem of course ( the only one that I can see actually...) but that should not be difficult to solve... Please E-mail if possible, since our news-server is quite erratic... Simos Hadjiyiannis "I go down to Speaker's Corner, I' m thunderstruck, they got free speech, tourists, police in trucks, two men say they are Jesus, one of them must be wrong..."
dorner@pequod.cso.uiuc.edu (Steve Dorner) (11/27/90)
> 2. I am writing an arcade game for the Mac ( for the past four months..) > and I was wondering if there is anything wrong with NOT fetching events. I'd strongly suggest you look for events at least "once in a while". Doing the necessary stuff every second or two shouldn't be that big a burden. This will solve the "menu" problem for you. More importantly, your game will give time to background applications, which is very important. -- Steve Dorner, U of Illinois Computing Services Office Internet: s-dorner@uiuc.edu UUCP: uunet!uiucuxc!uiuc.edu!s-dorner
ogden@nmsu.edu (Bill Ogden) (11/28/90)
In article <1990Nov26.193032.17934@ux1.cso.uiuc.edu> dorner@pequod.cso.uiuc.edu (Steve Dorner) writes: > 2. I am writing an arcade game for the Mac ( for the past four months..) > and I was wondering if there is anything wrong with NOT fetching events. I'd strongly suggest you look for events at least "once in a while". Doing the necessary stuff every second or two shouldn't be that big a burden. This will solve the "menu" problem for you. More importantly, your game will give time to background applications, which is very important. -- Does this mean that a good way to prevent other processes from robbing time from your time critical programs is to use GetKeys? Does this prevent even the operating system to steal time from your program? How is GetOSEvent different? No flames please, but I would like to write a progam that gets a keystroke *as soon* as it occurs, and I am concerned that the operating system may be off doing something that I don't care about. Is there a way of making sure? Bill Ogden ogden@nmsu.edu -- ogden@nmsu.edu Bill Ogden Computing Research Lab New Mexico State University Las Cruces, NM