Quote:Original post by Dtag
Hmm considering you still have a circle of grass around the camera, what do you do if the camera moves and new chunks have to be added? How can that done efficiently, without having to check each grass chunk again whether its still in range? New grass-chunks may also create somewhat large memory movements which are a performance killer as well.
Wouldn't it just be possible to have some algorithm for drawing grass, e.g., drawing grass with one unit spacing in both directions (x and y), in this way you could easily determine what grass needs to be added, what's to be removed and easily have them all sorted (as you could create the grass in the right order easily).
(Of course it doesn't need to be lines, but the same applies, but with variation)
Just a thought
EDIT: now I mean like really dense gras, not the stripes seen in many games, those shouldn't be too advanced.