How to draw many identical Bitmaps faster?

Problems with Canvas, OpenGL, etc...

Re: How to draw many identical Bitmaps faster?

Postby pskink » Mon Jun 07, 2010 6:58 am

bad news

just check it and seems that Rasterizer works only with primitive shaoes (drawRect, drawCircle) or text (drawText) but not with Bitmap :-(

so you can forget about Rasterizer, sorry...
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Top

Re: How to draw many identical Bitmaps faster?

Postby impi » Mon Jun 07, 2010 12:52 pm

Just go opengl, take a look at the Replica Island code. Good stuff. Look at the "Grid" class, which is an extended version of the Grid class from the SpriteMethodTest.

It's an VertexGrid with Triangles inside it, packed 2 connected to generate a quad, texturizing them with uv coords from an given texture and draw them in one call (or using screensize/tileheight strips for large maps with scrolling).
impi
Developer
Developer
 
Posts: 29
Joined: Wed Apr 28, 2010 11:17 pm

Re: How to draw many identical Bitmaps faster?

Postby gskbyte » Tue Jun 08, 2010 11:49 am

That looks really interesting. I'm downloading the Replica Island code and I will try it now. Thank you!
gskbyte
Experienced Developer
Experienced Developer
 
Posts: 52
Joined: Tue Jan 12, 2010 1:51 pm

Top
Previous

Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 2 guests