Not double-buffering?

I seem to have a problem.
I’m working on an old Sun machine, and I’m writing some very simple code for a
videogame.

My problem is that the double-buffering I asked for with SDL_DOUBLEBUF does
not seem to be happening. For instance, if I slow it way way down (as a
test), I can see individual blocks of the screen being updated. This
shouldn’t happen if I’m double-buffered. And it is definately flickering too!

SDL_VideoModeOK() said that it worked, so why is it not double-buffered?

Thanks.
–Ryan

I seem to have a problem.
I’m working on an old Sun machine, and I’m writing some very simple code for a
videogame.

My problem is that the double-buffering I asked for with SDL_DOUBLEBUF does
not seem to be happening. For instance, if I slow it way way down (as a
test), I can see individual blocks of the screen being updated. This
shouldn’t happen if I’m double-buffered. And it is definately flickering too!

SDL_VideoModeOK() said that it worked, so why is it not double-buffered?

Double buffering isn’t supported on X11. The X11 double-buffering extension
is generally too slow to be useful.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Sam Lantinga writes:

Double buffering isn’t supported on X11. The X11 double-buffering extension
is generally too slow to be useful.

Does that include the DGA/DGA2 driver?

This should really be a faq or something, given the frequency with
which it comes up. I’ld be glad to write something up, except that
now I’m not sure I really understand the state of double buffering
(and of course the ever popular, closely related vsync issue) well
enough to write it up correctly :frowning:

/jamie–
office: 510-643-3573 mail: 3210 Tolman Hall #1650
lab: 510-642-1950 U.C. Berkeley
fax: 801-697-4179 Berkeley, CA 94720-1650
email: @James_Mazer

Sam Lantinga writes:

Double buffering isn’t supported on X11. The X11 double-buffering extension
is generally too slow to be useful.

Does that include the DGA/DGA2 driver?

Nope, just plain vanilla X11.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment