Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Parallax Lag

I recently created a parallax map using photoshop (20x18). However after I added the image to MV is caused my game to lag really badly.

I tried by applying as a traditional parallax.
As a "Show Picture".
And by using a plugin.

Each method just applied different amounts of lag.

Here is the image

Help please!
 

Attachments

Xilefian

Adventurer
Xy$
0.00
I'm guessing when you say "lag" you mean low frame-rate?

MV isn't great with large images. I'm exploring the use of parallax maps for my current project, I've actually opted to go a different route; I'm using the TileD Plugin and I'm converting my parallax maps into tiles, so they have the advantage of the optimised tile-based renderer of MV.

The draw-back, of course, is that all maps need to be built in TileD, which is a headache - especially when it comes to events. But this is certainly the best method if you want good performance.

By splitting the parallax layer into multiple images (in my case, tiles) MV can discard sections of the parallax that are not visible, which helps a lot with performance. If your Plugin has an option to split the parallax layers into tiles then go with that.

A good parallax mapping Plugin would convert parallax maps into tiles for MV's default mapping system, I'm not sure if any of the existing Plugins actually do this.
 
Top