I saw CPU spikes at 72%, I'm guessing because you're drawing a bunch of rectangles to approximate the more complex dark blue shapes? It might be worth trying a flood fill method instead, my limited experience with it in a shape library prototype kept CPU fairly low, and it would give cleaner line-based edges. This is looking pretty cool, though!
yeah I'd love to find ways to speed it up. Part of it is definitely due to drawing lots of rectangles for the "sides", but I wasn't sure how to do that any faster. Floodfill might be good but I'm uncertain whether that'd actually be faster or not. in general finding ways to only render "once" would probably help. Right now there's a ton of overlap.
@adekto, yeah it's basically just simple parallaxing. I get those odd glitches too. not totally sure why it's 1 pixel like that since its only rectangles being drawn - no lines/pixels.
[Please log in to post a comment]