SDL Bugs

Hi!

Few bugs I’ve noticed the last couple of days:

  1. If you use an emulated mode with SDL under DGA, SDL fails to clear the
    screen, so you end up getting garbage in the unaccessable parts of the
    screen, e.g. if you initialize 640x480x8bpp fullscreen mode under DGA, line
    0 - 40 and line 440 - 480 contains garbage. Maybe put a SDL_FillRect() in
    SDL_SetVideoMode to fix the problem?

  2. SDL_DOUBLEBUF is broken when using DGA. I’ve tested this several ways.

  3. Initialize SDL_SWSURFACE: Code works fine, smooth, etc.

  4. SDL_SWSURFACE | SDL_DOUBLEBUF: Flickering starts.

  5. SDL_HWSURFACE: Real bad flickering (this is also not right, since
    SDL_Flip() is supposed to wait for the vertical refresh. I reported this
    earlier, but you guys didn’t agree that You should first wait for
    vertical refresh and then update the screen - I’m sure it will fix
    this problem)

  6. SDL_HWSURFACE | SDL_DOUBLEBUF: Same as in 2) - Flickering starts.

I’ve looked at other demos and eyecandy written for SDL and noticed
everybody stays away from using SDL_DOUBLEBUF and SDL_HWSURFACE. Change
their code and it breaks. Same happens to all my code.–

Regards
Abraham


Abraham vd Merwe [ZR1BBQ] - Frogfoot Networks
P.O. Box 3472, Matieland, Stellenbosch, 7602
Cell: +27 82 565 4451 - Tel: +27 21 887 8703
Http: http://www.frogfoot.net
Email: @Abraham_vd_Merwe

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20010118/106bae20/attachment.pgp

  1. SDL_DOUBLEBUF is broken when using DGA. I’ve tested this several ways.

I haven’t been able to reproduce this with the XFree86 4.0 Matrox X server.
Can you give more information about your hardware and version of X?

Thanks,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

  1. If you use an emulated mode with SDL under DGA, SDL fails to clear the
    screen, so you end up getting garbage in the unaccessable parts of the
    screen, e.g. if you initialize 640x480x8bpp fullscreen mode under DGA, line
    0 - 40 and line 440 - 480 contains garbage. Maybe put a SDL_FillRect() in
    SDL_SetVideoMode to fix the problem?

This should already be done. Can you post a small test program that shows
both problems?

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

Hi Sam!

  1. SDL_DOUBLEBUF is broken when using DGA. I’ve tested this several ways.

I haven’t been able to reproduce this with the XFree86 4.0 Matrox X server.
Can you give more information about your hardware and version of X?

XFree86 Version 4.0.1d with NVidia’s driver.

I have a NVidia TNT2 Ultra w/ 32MB Ram, Celeron 466 w/ 256MB Ram–

Regards
Abraham


Abraham vd Merwe [ZR1BBQ] - Frogfoot Networks
P.O. Box 3472, Matieland, Stellenbosch, 7602
Cell: +27 82 565 4451 - Tel: +27 21 887 8703
Http: http://www.frogfoot.net
Email: @Abraham_vd_Merwe

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20010119/fbad226e/attachment.pgp

Can you give more information about your hardware and version of X?

XFree86 Version 4.0.1d with NVidia’s driver.

please post a minimal example that shows your problem