Godot 2D Tilemap Performance while zooming out

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By TotCac
:warning: Old Version Published before Godot 3 was released.

While zooming out camera, FPS start dropping. Don’t know if I doing something wrong or it’s engine related.
Tileset is made of 64x64 tiles (independant png) to avoid artefact with unique big png. If I hide floor tilemap, then i have no FPS drop.

Sample: https://www.youtube.com/watch?v=ThYeRtSqeBU

What happens if you disable the lights?
Did you tried anyways with an atlas?

Zylann | 2016-06-13 20:07

Disabling shadow or all light do nothing.
I have no idea how to configure a tileset with an atlas texture but if I set an atlas while exporting game, i can’t see any difference on FPS

TotCac | 2016-06-14 06:36

Try adjusting the “Quadrant Size” of the tilemap node. One of my projects used 16x16 tiles and was zoomed out by (3,3). I saw a huge performance increase when I lowered that setting down to 8 from either 16 or 32 (can’t remember which one). But I actually have some culling code that replaces grass tiles with navpolygons on them with grass tiles without navpolygons, using the method “set_tile”, so that might have been the reason it helped me. (I think setting an “active” tile was the issue) I also just used a PNG image and not an atlas for the tileset.

batmanasb | 2016-06-14 09:52