[SDL] tearring graphics
David Olofson
david at olofson.net
Wed Jan 29 11:01:01 PST 2003
On Wednesday 29 January 2003 19.19, Atrix Wolfe wrote:
> another idea would be something like when you hold down a button,
> your game enters some kinda "pause" mode where it doesnt update
> anything that would cause the graphics to change, allowing you to
> take a screen shot because even if tearing happens, you cant see it
> since its just the same frame over and over. Pressing the button
> again would take it out of pause mode.
Or, if the problem is really the screenshots, just implement a
screenshot feature in the game. As long as you don't deliberately
break SDL's "single thread for graphics" requirement, it will Just
Work(TM), since you can't preempt rendering if the screenshot code is
in the same thread.
This obviously does nothing to reduce visible tearing when you're
playing, of course.
//David Olofson - Programmer, Composer, Open Source Advocate
.- The Return of Audiality! --------------------------------.
| Free/Open Source Audio Engine for use in Games or Studio. |
| RT and off-line synth. Scripting. Sample accurate timing. |
`---------------------------> http://olofson.net/audiality -'
--- http://olofson.net --- http://www.reologica.se ---
More information about the SDL
mailing list