RebelSDL, or GL Galore for hardware acceleration

General questions that have to do with plugins go here

RebelSDL, or GL Galore for hardware acceleration

Postby inermis » Thu Sep 14, 2017 9:45 am

When you want to profit from hardware acceleration (hardware double-buffer and hardware sprites) should one use RebelSDL or GL Galore? Saying no dedicated SDL or OpenGL things are needed. GL Galore should have less overhead while SDL uses OpenGL itself, or is there an other aspect to use the one or other?
inermis
 
Posts: 1
Joined: Wed Sep 13, 2017 12:45 pm

Re: RebelSDL, or GL Galore for hardware acceleration

Postby SamuraiCrow » Thu Sep 14, 2017 5:29 pm

If you want to use 2D graphics, use Rebel SDL. It's written in C. GL Galore is just a wrapper for the OpenGL driver and isn't as handy for 2D as it is for 3D.
SamuraiCrow
 
Posts: 83
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: RebelSDL, or GL Galore for hardware acceleration

Postby airsoftsoftwair » Thu Sep 14, 2017 10:08 pm

I haven't done any performance comparisons between 2D graphics in RebelSDL and GL Galore. Anyone who is interested in this, please feel free to try and post some statistics. On Linux and Mac OS RebelSDL and GL Galore both boil down to OpenGL so I wouldn't expect any major differences here. On Windows, however, RebelSDL uses Direct3D by default which is an entirely different beast and might give a better performance but it's difficult to generalize things here because of course it's all highly dependent on the graphics board and the drivers. You just have to try.

@SamuraiCrow:
You can use GL Galore for 2D graphics as well. Hollywood hardware brushes are mapped directly to OpenGL textures so you can use GL Galore as a tool to get hardware-accelerated drawing, scaling, and transforming without having to write a single line of OpenGL code. See here.
User avatar
airsoftsoftwair
 
Posts: 2164
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: RebelSDL, or GL Galore for hardware acceleration

Postby SamuraiCrow » Sat Sep 16, 2017 1:05 pm

I realize that you can use OpenGL to do 2D graphics but it's like trying to swat a fly with an axe. Another thing to consider is that some Windows machines (mainly high end gaming rigs) come only with DirectX driver support and lack OpenGL completely. My Atom laptop is one such machine.
SamuraiCrow
 
Posts: 83
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA


Return to General plugin questions

Who is online

Users browsing this forum: No registered users and 1 guest