Faster?

Started by
4 comments, last by Ertai 22 years, 6 months ago
if i want to make a 2d tile engine, what would be faster? pixel operations like glDrawPixels or textured geometry using QUADS ?
Stefan
Advertisement
glDrawPixel is slow as hell on PC, use traingles/quads - MUCH MUCH faster (and you can easily use two/more textures for lighting...all kind of nice stuff

With best regards,
Mirek Czerwiñski
http://kris.top.pl/~kherin/
With best regards, Mirek Czerwiñski
Hi,

Are you sure that Open GL is necessary to build a 2D tile engine ??? I think libraries like SDL (http://www.libsdl.org) are much faster in that case... Or maybe you have some special goals that force you to use Open GL (for example performing 3D rotation to your BG).
Open GL is good for 3D development. But for 2D... I really dunno.

Regards,

The Night Howler
I have a 50% complete OpenGL-based tile engine, using triangle strips for the tiles. OpenGL can do a whole lot more effects than DirectDraw. You can even simulate Mode7 pseudo-3d graphics, SNES-style. I think OpenGL is the way to go, as long as you make sure that any you don''t get any unnecessary bottlenecks.
Well, I think OpenGL is just cool, and i want to learn it anyway ... and i want smooth lightning and all, so i think i could use some hardware acceleration ... thx for your help !
Stefan
I agree, go with quads and other primitives, not the raster operations. They''re faster for most consumer video cards anyway.

[Resist Windows XP''s Invasive Production Activation Technology!]

This topic is closed to new replies.

Advertisement