Bug in 1.1.7 / MacOS

1.1.7 introduced a new bug for the MacOS port. In file
SDL_macevents.c, lines 103ff, it reads:

#if TARGET_API_MAC_CARBON
#define cooperative_multitasking 1
#else
#define cooperative_multitasking 0
#endif

However, this should be reversed! non-carbon systems relay on
cooperative_multitasking!

In fact, it is even a not-so-obvious decision to assume a carbon
system is preemptive. If you run on OS X this is true, but if oyu run
on OS 8/9 plus CarbonLib, the assertion is wrong, AFAIK.

Maybe the intention was to only activate this for OS X. This has to
be done differently, though!

Max “Fingolfin”

1.1.7 introduced a new bug for the MacOS port. In file
SDL_macevents.c, lines 103ff, it reads:

#if TARGET_API_MAC_CARBON
#define cooperative_multitasking 1
#else
#define cooperative_multitasking 0
#endif

This flag just means do we cooperate with MacOS task switching or not.
With the given values, MacOS classic apps will hog the display so that
you cannot switch to another application, while carbon apps will be a
little more Finder-friendly.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

At 17:59 Uhr -0800 12.01.2001, Sam Lantinga wrote:

1.1.7 introduced a new bug for the MacOS port. In file
SDL_macevents.c, lines 103ff, it reads:

#if TARGET_API_MAC_CARBON
#define cooperative_multitasking 1
#else
#define cooperative_multitasking 0
#endif

This flag just means do we cooperate with MacOS task switching or not.
With the given values, MacOS classic apps will hog the display so that
you cannot switch to another application, while carbon apps will be a
little more Finder-friendly.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Hogging the CPU is a very bad behaviour for any app. If a game really
needs to do this, it should offer an option, and not just force the
user to live with it! Using this will cause all network traffic to
stop, will quit my internet connection, and makes debuggin harder.

If you really have to use this, make it changeable on runtime

I still consider it a bug unless it becomes well documented and
changable easy (having to dig through source to find out about it
does not count )

Max–

Max Horn
International C/C++/Internet Development

email: mailto:Max_Horn
web: http://www.quendi.de
phone: (+49) 6151-494890

Hogging the CPU is a very bad behaviour for any app. If a game really
needs to do this, it should offer an option, and not just force the
user to live with it! Using this will cause all network traffic to
stop, will quit my internet connection, and makes debuggin harder.

Well, I’ll be integrating Darrell’s new prefs code, so when that’s
in, maybe you add that as an option to the preferences dialog.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software