Animation while dragging the window?

Does anyone know if my SDL application can continue its animation while the application window is being dragged by the user? If so, please point me in the right direction. Currently, everything stops. This is in Windows SDL 1.2.7.

Thanks!
–Warren Schwader

That’s a bug (or incredibly stupid feature) of the Windows window
manager. Windows hijacks the event loop while the user is holding on
to the window title bar.

Two ways around it:

1) Use borderless windows and implement your own
   window manager, WinAmp style.

2) Use an extra thread for rendering, and use the
   "window thread" only for handling messages related
   to the window.

Dunno if there’s much you can do under SDL without hacking your SDL
lib, though…

//David Olofson - Programmer, Composer, Open Source Advocate

.- Audiality -----------------------------------------------.
| Free/Open Source audio engine for games and multimedia. |
| MIDI, modular synthesis, real time effects, scripting,… |
`-----------------------------------> http://audiality.org -’
http://olofson.nethttp://www.reologica.se —On Friday 27 February 2004 10.47, Warren Schwader wrote:

Does anyone know if my SDL application can continue its animation
while the application window is being dragged by the user? If so,
please point me in the right direction. Currently, everything
stops. This is in Windows SDL 1.2.7.

Thanks David. Suggestion #1 is not an option for me. For #2 - Doesn’t the
rendering and updating of the screen have to be done in the main thread?

Warren Schwader> ----- Original Message -----

From: david@olofson.net (David Olofson)
To:
Sent: Tuesday, March 02, 2004 5:27 AM
Subject: Re: [SDL] animation while dragging the window?

On Friday 27 February 2004 10.47, Warren Schwader wrote:

Does anyone know if my SDL application can continue its animation
while the application window is being dragged by the user? If so,
please point me in the right direction. Currently, everything
stops. This is in Windows SDL 1.2.7.

That’s a bug (or incredibly stupid feature) of the Windows window
manager. Windows hijacks the event loop while the user is holding on
to the window title bar.

Two ways around it:

  1. Use borderless windows and implement your own
    window manager, WinAmp style.

  2. Use an extra thread for rendering, and use the
    "window thread" only for handling messages related
    to the window.

Dunno if there’s much you can do under SDL without hacking your SDL
lib, though…

//David Olofson - Programmer, Composer, Open Source Advocate

.- Audiality -----------------------------------------------.
| Free/Open Source audio engine for games and multimedia. |
| MIDI, modular synthesis, real time effects, scripting,… |
`-----------------------------------> http://audiality.org -’
http://olofson.nethttp://www.reologica.se


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl