Need to learn OpenGL for fast 2-d blitting of images and text

Need to learn OpenGL for fast 2-d blitting of images and text…

I need an easy way to do the above.
Native SDL is ridiculously slow.

I wish to make a new game with 4-way full window scrolling,
and this is impossible to do with native SDL.

Any help would be greatly appreciated, thanks!

Jesse “JeZ+Lee” Palser, BS, A+, Network+, MCP
SLNTHERO at aol.com
Silent Hero Productions®
Video Game Design Studio
http://www.SilentHeroProductions.com

Not an answer to your inquiry, but what resolution are you attempting to run
at, and on what hardware ? 640x480 should be no problem on a GHz class
machine.

-WillOn Tue, Aug 5, 2008 at 4:08 PM, Jesse P. wrote:

Need to learn OpenGL for fast 2-d blitting of images and text…

I need an easy way to do the above.
Native SDL is ridiculously slow.

I wish to make a new game with 4-way full window scrolling,
and this is impossible to do with native SDL.

Any help would be greatly appreciated, thanks!

Jesse “JeZ+Lee” Palser, BS, A+, Network+, MCP
SLNTHERO at aol.com
Silent Hero Productions®
Video Game Design Studio
http://www.SilentHeroProductions.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hi Will,

I run a 640x640 Window (not full screen)…

Also, not using any trickery
(drawing the full window each frame @ about 30 Frames Per Second)

JeZ+Lee

Will Langford wrote:> Not an answer to your inquiry, but what resolution are you attempting

to run at, and on what hardware ? 640x480 should be no problem on a
GHz class machine.

-Will

On Tue, Aug 5, 2008 at 4:08 PM, Jesse P. <slnthero at aol.com <mailto:slnthero at aol.com>> wrote:

Need to learn OpenGL for fast 2-d blitting of images and text...


I need an easy way to do the above.
Native SDL is ridiculously slow.

I wish to make a new game with 4-way full window scrolling,
and this is impossible to do with native SDL.

Any help would be greatly appreciated, thanks!


Jesse "JeZ+Lee" Palser, BS, A+, Network+, MCP
SLNTHERO at aol.com <mailto:SLNTHERO at aol.com>
Silent Hero Productions(R)
Video Game Design Studio
http://www.SilentHeroProductions.com

_______________________________________________
SDL mailing list
SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

My 1024x768 game runs fine at 30Hz on a 2.0 GHz CPU with 256Mb RAM. It’s all software-driven, scrolls 4 ways, and has a full screen refresh. With a dual-core Macbook, I can put it up to around 50Hz. You could try glSDL if you want OpenGL as a back-end for SDL’s standard blitting stuff. If you do want OpenGL, take a look at the NeHe tutorials (http://nehe.gamedev.net/).

Jonny D> Date: Tue, 5 Aug 2008 17:08:24 -0400

From: slnthero at aol.com
To: sdl at lists.libsdl.org
Subject: [SDL] Need to learn OpenGL for fast 2-d blitting of images and text…

Need to learn OpenGL for fast 2-d blitting of images and text…

I need an easy way to do the above.
Native SDL is ridiculously slow.

I wish to make a new game with 4-way full window scrolling,
and this is impossible to do with native SDL.

Any help would be greatly appreciated, thanks!

Jesse “JeZ+Lee” Palser, BS, A+, Network+, MCP
SLNTHERO at aol.com
Silent Hero Productions®
Video Game Design Studio
http://www.SilentHeroProductions.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hmm…

Have you benchmarked your systems? That is, have you written a simple program that:

  1. Clears the screen with a different colour.
  2. Fills the screen with random-sized rectangles using the built-in ‘fast’ blitting operations.
  3. Calculates how long it takes to display 50 or 100 such rectangles.

This should give you the fundamental performance of the underlying hardware/software on the system.

Now, if your game isn’t squirting stuff out at that speed, then the problem is in your design or implementation.

OpenGL isn’t some performance ‘magic bullet’. It just gives you access to hardware that is specialised toward doing certain things, mainly 3D. Even then, you’ll only get significantly better performance if you use it correctly.

Eddy________________________________________
From: sdl-bounces@lists.libsdl.org [sdl-bounces at lists.libsdl.org] On Behalf Of Jonathan Dearborn [grimfang4 at hotmail.com]
Sent: 06 August 2008 12:19
To: A list for developers using the SDL library. (includes SDL-announce)
Subject: Re: [SDL] Need to learn OpenGL for fast 2-d blitting of images and text…

My 1024x768 game runs fine at 30Hz on a 2.0 GHz CPU with 256Mb RAM. It’s all software-driven, scrolls 4 ways, and has a full screen refresh. With a dual-core Macbook, I can put it up to around 50Hz. You could try glSDL if you want OpenGL as a back-end for SDL’s standard blitting stuff. If you do want OpenGL, take a look at the NeHe tutorials (http://nehe.gamedev.net/).

Jonny D


Date: Tue, 5 Aug 2008 17:08:24 -0400
From: slnthero at aol.com
To: sdl at lists.libsdl.org
Subject: [SDL] Need to learn OpenGL for fast 2-d blitting of images and text…

Need to learn OpenGL for fast 2-d blitting of images and text…

I need an easy way to do the above.
Native SDL is ridiculously slow.

I wish to make a new game with 4-way full window scrolling,
and this is impossible to do with native SDL.

Any help would be greatly appreciated, thanks!

Jesse “JeZ+Lee” Palser, BS, A+, Network+, MCP
SLNTHERO at aol.com
Silent Hero Productions®
Video Game Design Studio
http://www.SilentHeroProductions.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

My 1024x768 game runs fine at 30Hz on a 2.0 GHz CPU with 256Mb RAM.
It’s all software-driven, scrolls 4 ways, and has a full screen
refresh. With a dual-core Macbook, I can put it up to around 50Hz.

But, just to note, even 50 Hz is really bad for a simple 2D game on such
a powerful system.

And it also will take a lot of CPU power (I would guess 100%), which is
esp. bad for a laptop like the Macbook.

And perhaps you also want to play the simple 2D game not only on very
top-performance machines but also on your old 166MHz Pentium1.On Wed, 2008-08-06 at 07:19 -0400, Jonathan Dearborn wrote:

And perhaps you also want to play the simple 2D game not only on very
top-performance machines but also on your old 166MHz Pentium1.

Of similar note, on a p166 class system, starcraft would play fairly
acceptably. 640x480x8bit. Not 640x640x32bit or similar :).

I’d still agree with other consensus of using OGL. Free rotation and other
goodies is good for 2D engines :).

-Will