Windows Using same tile-atlas on different layers (Performance Question)

c023-DeV

Member
Hey,
I have all my wall-tiles mapped out on one sheet (512px x 512px) for convenience and mixing.

If I create multiple layers with the same tile-texture, will these layers also multiply the texture in memory or do they always refer to the same chunk in memory?
 

TsukaYuriko

☄️
Forum Staff
Moderator
It will refer to the same texture page in memory.

The only thing you need to be aware of in this regard is texture swaps, in case you're drawing sprites from a different texture page in between those two layers, as that will bump up your texture swap count.
 

c023-DeV

Member
It will refer to the same texture page in memory.

The only thing you need to be aware of in this regard is texture swaps, in case you're drawing sprites from a different texture page in between those two layers, as that will bump up your texture swap count.
How can I ensure that they get drawn in one batch? I have all level assets assigned to the same page.
Does it help when the layers are on a close depth and no other entities in between?
 
M

maru_th_undrtkr

Guest
Tools > Texture Groups > Create Groups that will be used together
 
Top