OpenGL and SDL

Started by
4 comments, last by TheRealMAN11 22 years, 4 months ago
Ok, would my 2d game run faster if I used sdl for graphics instead of opengl. Right now I am using sdl for everyting but the graphics. And does anyone know if sdl ever plans to add a 3d part, maybe just an implementation of opengl (i know you can use ogl with sdl already but I was just wondering). It is foolish for a wise man to be silent, but wise for a fool. Matthew WebMaster www.Matt-Land.com All your Xbox base are belong to Nintendo.
It is foolish for a wise man to be silent, but wise for a fool.
Advertisement
I don''t think you can have better performance using any other than OpenGL.
Opengl actually isn''t the fastest as far as graphics API, but it is one of the fastest in the PORTABLE arena. DirectX will actually run faster in some cases on a native Windows platform, but it''s pretty convoluted in it''s use. (Not trying to start a flame war here, just stating an opinion).


Jay

Press any key to continue...

Where''''s the any key?
Press any key to continue...Where''s the any key?
quote:Original post by JayTee
Not trying to start a flame war here, just stating an opinion.

An opinion phrased as a fact. While I see what you mean, other people may not. OpenGL runs faster than DirectX on my machine, so it''s kind of pointless to make a broad sweeping generalization like "API X is faster than API Y" .

[Resist Windows XP''s Invasive Production Activation Technology!]
quote:Original post by JayTee
Opengl actually isn''t the fastest as far as graphics API, but it is one of the fastest in the PORTABLE arena. DirectX will actually run faster in some cases on a native Windows platform, but it''s pretty convoluted in it''s use. (Not trying to start a flame war here, just stating an opinion).


Jay

Press any key to continue...

Where''s the any key?



API have NO speed or feature.

Hardware has speed or feature. The API exposes those feature for you to use easely. Though, somethimes the design can cause hardware to run slower because the driver has to do some contraptions, but Direct3d and Opengl are now so similar that the speed/design factor is gone. Only hardware matters.
just a few points from my experiance

for starters it depends on the card. Some cards are better with OpenGL than Direct3D and vice versa.

For software it really depends on what you are doing and how you blit the surface.

Another thing is that out of SGI and Microsoft''s OpenGL for Win32, Microsoft is faster for vectors (lines - and probably points but I haven''t compared points yet) but SGI has faster polygon engine. Faster to the point that you will notice it (especially if you are using software mode or have a slow machine).


Beer - the love catalyst
Beer - the love catalystgood ol' homepage

This topic is closed to new replies.

Advertisement