godot-tiled-importer icon indicating copy to clipboard operation
godot-tiled-importer copied to clipboard

add y sort property

Open cromerc opened this issue 2 years ago • 0 comments

This allows Y sorting to be turned on or off as a property. This is important because large tile maps of the size 512x512 for example create 262,144 objects and reserve memory for them while running and then it has to sort them constantly by their Y coordinates as they are drawn each frame.

With a map size of 512x512 I was getting around 10 FPS. After turning off y sorting on that map which I didn't need Y sorting at all, I am now sitting at 60 FPS running smoothly.

cromerc avatar Jun 18 '22 20:06 cromerc