CVS Update (SDL_ASYNCBLIT)

A new CVS snapshot is now available:
http://www.devolution.com/~slouken/SDL/cvs.html

Changes:

  • Added SDL_ASYNCBLIT flag for asynchronous video updates
  • Don’t let the WM place window in X11 fullscreen mode
  • Unload GL library after X11 display has closed
  • Fixed X11 error when a clipped rectangle is updated
  • Fixed crash when surface memory can’t be allocated
  • Added a check for DirectX 5 audio (thanks Markus)

The SDL_ASYNCBLIT code is a big enhancement (from the WhatsNew file):

Added support for asynchronous blitting.  To take advantage of this,
you must set the SDL_ASYNCBLIT flag when setting the video mode and
creating surfaces that you want accelerated in this way.  You must
lock surfaces that have this flag set, and the lock will block until
any queued blits have completed.

Currently this is only implemented on X11 when you are on a multi-cpu
system. It turned out to actually be slower on a single-cpu system
because the X server and the application are contending for the CPU
at the same time.

Eventually this flag will be used by the Win32 DirectX code to provide
page locking and DMA directly from software surfaces to video memory,
using the new DirectX 7.0 interfaces.

Enjoy!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

A new CVS snapshot is now available:
http://www.devolution.com/~slouken/SDL/cvs.html

… you’re just desperate to avoid doing that code audit, aren’t you? :slight_smile:

Enjoy!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Nicholas (and yes, I have been talking to Scott ;-))

Nicholas Vining "So what’re we going to do tonight, Brain?"
vining at pacificcoast.net “The same thing we do every night, Pinky,
icq: 20872003 world domination through Linux.”

----- Original Message -----
From: slouken@devolution.com (Sam Lantinga)
To: sdl at lokigames.com
Date: Friday, April 14, 2000 1:10 PM
Subject: [SDL] CVS Update (SDL_ASYNCBLIT)

A new CVS snapshot is now available:
http://www.devolution.com/~slouken/SDL/cvs.html

… you’re just desperate to avoid doing that code audit, aren’t you? :slight_smile:

The code audit is done. SMAC’ing time!

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software> -----Original Message-----

From: Sam Lantinga
To: sdl at lokigames.com
Date: Friday, April 14, 2000 1:10 PM
Subject: [SDL] CVS Update (SDL_ASYNCBLIT)

A new CVS snapshot is now available:
http://www.devolution.com/~slouken/SDL/cvs.html

… you’re just desperate to avoid doing that code audit, aren’t you? :slight_smile:

The code audit is done. SMAC’ing time!

Scott finally struck! Yeah, hope it’s not my code you were auditing…
please bear in mind that I actually developed a sane coding style after
that, except that nothing’s finished enough to show. Maybe this weekend…
I’m getting a new computer soon so that may drive me to produce. Damn
burnout. :wink:

SMAC == “Sid Meier’s Alpha Centauri”, I presume?

-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Nicholas

Nicholas Vining "So what’re we going to do tonight, Brain?"
vining at pacificcoast.net “The same thing we do every night, Pinky,
icq: 20872003 world domination through Linux.”

----- Original Message -----
From: slouken@devolution.com (Sam Lantinga)
To: sdl at lokigames.com
Date: Friday, April 14, 2000 5:48 PM
Subject: Re: [SDL] CVS Update (SDL_ASYNCBLIT)