• Advertisement

Archived

This topic is now archived and is closed to further replies.

Faster?

This topic is 5955 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

if i want to make a 2d tile engine, what would be faster? pixel operations like glDrawPixels or textured geometry using QUADS ?

Share this post


Link to post
Share on other sites
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/

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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 !

Share this post


Link to post
Share on other sites

  • Advertisement