realbasic-games
[Top] [All Lists]

Re: A possible answer to performance woes?

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: A possible answer to performance woes?
From: Frank C <lists at si-co dot com>
Date: Thu, 27 May 2004 13:16:14 -0400
Delivered-to: realbasic-games at lists dot realsoftware dot com
List-help: <mailto:realbasic-games-request@lists.realsoftware.com?subject=help>
List-id: REALbasic Games <realbasic-games.lists.realsoftware.com>
List-post: <mailto:realbasic-games@lists.realsoftware.com>
References: <D2A43315-AF88-11D8-B391-000A95CDD7B0 at charcoaldesign dot co dot uk> <a05300b07bcdb0d98333a at [10 dot 10 dot 13 dot 3]> <FC1FA216-AF91-11D8-B391-000A95CDD7B0 at charcoaldesign dot co dot uk> <a05300b0cbcdba1fab98a at [10 dot 10 dot 13 dot 3]> <80B6D624-AFE8-11D8-B391-000A95CDD7B0 at charcoaldesign dot co dot uk>
On 27-May-04, at 10:16 AM, Nick Lockwood wrote:

BTW, when I say it seems to have crashed, I mean from the OS's point of view, rather than the user's.

Ah, I see.  I'm not sure the OS particularly cares, though.

Well it does if the app gets put in the background or you try to move the window since it can't do anything with it. I guess that is a bit of a transferred epithet - obviously the OS doesn't care, but the user cares if the OS can't interoperate with an app because it thinks it's frozen. Or something.

I capture the mouse while the game is windowed (and running in a tight loop) to avoid click-throughs to over applications. Hitting escape pauses the app and releases the mouse, breaking out of the loop until it's resumed. Another thing you can do on Mac OS is use a plugin or declare that queries the process manager from inside the tight loop to make sure your app is still in front, then take appropriate actions if the user managed to switch out.

Less of an issue for fullscreen apps, granted, but they still do weird shit if you command-tab to another application. I know that can be switched off too with declares, but at that point I think the user might really start to get pissed off, especially if your app gets stuck in its infinite loop and you can't quit out except by restarting.

I watch for command-tab/H/Q in my tight loop and pause/break out of fullscreen when appropriate. At the same time, I provide preference settings that allow you to disable those key combinations. Before I got my Nostromo n50, I routinely used the Q and Command keys in FPS games, and found it very frustrating when certain games would suddenly quit on the off chance I pressed them simultaneously.

Frank.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>