Welcome! Log In Create A New Profile

Advanced

SDL and GX?

Posted by SteelSLasher 
SDL and GX?
December 13, 2009 08:14PM
Does SDL use GX for rendering? i dont want to continue work on my game engine to find it doesnt use gx since the engine is already starting to push my pc with rendering a few images, not sure if the gpu is being used to render hardware surfaces dont make any difference to speed so???
Re: SDL and GX?
December 14, 2009 01:16AM
Yes SDL uses GX.
Re: SDL and GX?
December 15, 2009 08:54PM
do you have any idea why hardware surfaces dont improve performance on my win7 box, do i need to intergrate opengl
Re: SDL and GX?
December 15, 2009 09:18PM
Quote
SteelSLasher
do you have any idea why hardware surfaces dont improve performance on my win7 box, do i need to intergrate opengl

That depends, what graphics card do you have on the machine?
Re: SDL and GX?
December 16, 2009 08:50PM
geforce 6600 256mb ram
Re: SDL and GX?
December 17, 2009 10:47AM
While this is not the place for PC SDL questions, I do have a few tips for you.

First, make sure you really got hardware surfaces. Some configurations only give you software surfaces even if you ask for hardware (I think 8 bit screens are always software on windows)
You can check the SDL_Surface->flags for that: [www.libsdl.org]

Next, make sure you do hardware->hardware blits on the same type of surfaces.
32bit hw -> 32bit hw should be fast.
16bit hw -> 32bit hw might fall back to slow blitting
32bit sw -> 32bit hw is slower then 32bit sw -> 32bit sw

And last but not least, direct pixel acces on hwsurfaces is slower then on swsurfaces!
Re: SDL and GX?
December 20, 2009 12:36PM
Quote
Daid
While this is not the place for PC SDL questions, I do have a few tips for you.

First, make sure you really got hardware surfaces. Some configurations only give you software surfaces even if you ask for hardware (I think 8 bit screens are always software on windows)
You can check the SDL_Surface->flags for that: [www.libsdl.org]

Next, make sure you do hardware->hardware blits on the same type of surfaces.
32bit hw -> 32bit hw should be fast.
16bit hw -> 32bit hw might fall back to slow blitting
32bit sw -> 32bit hw is slower then 32bit sw -> 32bit sw

And last but not least, direct pixel acces on hwsurfaces is slower then on swsurfaces!
seems like my pc just wont let me without implementing opengl,

also, are there differences between sdlwii and sdl in terms of functions
Sorry, only registered users may post in this forum.

Click here to login