Efficient way to draw many circles

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Petunien
Party member
Posts: 191
Joined: Fri Feb 03, 2012 8:02 pm
Location: South Tyrol (Italy)

Efficient way to draw many circles

Post by Petunien »

Hi,

as for space background, I need to draw about 40 "stars" (circles, radius 1-3).
Because I'm developing for Android and I'm using a low-end device, the frames drop of 80 to 30 because of the circles.

Every few seconds, I delete stars and draw randomly new one, to simulate randomness.

I wonder if there's a easier and more efficient way to solve this.

Threads? Canvasses?

Greets
"Docendo discimus" - Lucius Annaeus Seneca
User avatar
Inny
Party member
Posts: 652
Joined: Fri Jan 30, 2009 3:41 am
Location: New York

Re: Efficient way to draw many circles

Post by Inny »

Use a texture atlas and quads. Hand draw your stars. That should work out very nice.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 8 guests