# Question on which method is efficient for tilemaps

Discussion and feedback on Construct 2

### » Tue Dec 02, 2014 7:06 am

Method 1: One tilemap of an image with the solids behavior serving as the floor, and one tilemap of the same image without the solids behavior and serves as the background.

Method 2: One tilemap of an image that is just the background, and an invisible tilemap that is only a 16 x 16 image with the solids behavior and is tiled wherever it must be solid.

Here's a link to a capx showing my example
https://dl.dropboxusercontent.com/u/308 ... thods.capx

I'd like to know which method is better performance wise. Thanks!

@ashley, you might know this answer better than anyone though
B
12
S
3
Posts: 91
Reputation: 1,142

### » Tue Dec 02, 2014 10:54 am

Basilboy wrote:Method 1: One tilemap of an image with the solids behavior serving as the floor, and one tilemap of the same image without the solids behavior and serves as the background.

Method 2: One tilemap of an image that is just the background, and an invisible tilemap that is only a 16 x 16 image with the solids behavior and is tiled wherever it must be solid.

Here's a link to a capx showing my example
https://dl.dropboxusercontent.com/u/308 ... thods.capx

I'd like to know which method is better performance wise. Thanks!

@ashley, you might know this answer better than anyone though

the efficient one is the graphics with solid... and you can also edit a poligon collision for every tile....tilemap is the best method to make a large level, and save a lot of memory...

but you can also conbine a tilemap graphics and tilemap solid (only one square) like your example, with this, you can make a player go inside to some holes/make some parallax effect etc...etc...
B
21
S
9
Posts: 298
Reputation: 2,972

### » Tue Dec 02, 2014 12:26 pm

I don't think there will be any performance difference between the two. It is easy to check the answer to this kind of question yourself, just measure the performance, and if you can't measure a difference it probably doesn't matter. So go with whichever one is easier to use.
Scirra Founder
B
408
S
242
G
92
Posts: 24,888
Reputation: 198,582