Optimizing parallax star background

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.
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: Optimizing parallax star background

Post by tentus »

You'd be surprised how invisible a good tile is to most people. That said, making it randomly generated means that the odds of it being a good tile is... dramatically reduced. Random means that you'll have noticeable gaps and clusters, which will in turn make tile repetition more obvious.

A common trick is to make your tile just a little larger than necessary. Pad it by 64 pixels on each side, and it becomes much much harder to see the repeat, because the visible edges do not match up.

Have four or five tiles moving at different speeds... I'd say you're good. Just don't allow for too much variation, keep it subtle.
Kurosuke needs beta testers
User avatar
slime
Solid Snayke
Posts: 3133
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Optimizing parallax star background

Post by slime »

Well I tried making 5 framebuffer tiles the same dimensions as my screen resolution and drew all of them as a test (disabling my normal parallax bg first). I got a much lower framerate than when I had my regular parallax! I guess I've optimized as much as I can. :P
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 57 guests