This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Hello everyone,

I am currently using tilemap nodes for a 2D topdown pixel art game. Now i want to design mutliple different houses, each house having it's own scene. All of these house scenes have a tilemap node which loads the same png (a png containing all the tiles for a house). Theses house scenes then get instantiated into the main scene.

I am questioning myself right now, if this might be inefficient.
For example: Is this tilemap data loaded multiple times into the RAM? Of course i would like to avoid, having the same png loaded multiple times into the RAM.

Are there other reasons why this might be inefficient? Of course I would have a lot of tilemap nodes, if each house in the game has its own tilemap. Would this alone be less efficient than having just one big tilemap?

Would it be better to build these houses in one bigger tilemap, containing all houses? If so, how would i add functionality to a house (e.g: hiding the roof when entering the house)?

Thanks in advance for any help :)

Godot version 4.0 beta
in Engine by (12 points)
retagged by

1 Answer

0 votes

It would be more efficiet to create all houses with tilemap.
But it would be mostly pointless, multiple tilemaps won't take any considerable RAM, unless You are designing a game for 1999 Gameboy console :)

resources don't take any more space when they are used by multiple instances. It is always one resource shared by all. Textures, images - are resources.

by (8,188 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.