Efficiency of TileMap Rendering

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By MadMelon999

How Well Can TileMaps render a bunch of tiles, where some of the tiles are on-screen and some are off-screen?

Well, I tested just that, by having a camera scroll along a TileMap and rendering every tile within its view, while only removing (aka clearing) tiles outside of its view once certain conditions are met. Among the categories tested and data recorded are:

  • Camera Speed
  • Clearing tiles outside of screen once a condition is met (low fps or too many tiles)
  • FPS
  • Tiles on Map
  • Used Tiles

This GitHub Repository has the project, feel free to use it however you want: GitHub - RowlandR/TileMap-Rendering-Efficiency: A Godot Project that shows the efficiency of rendering a tile_map

Here is a picture of what it looks like: https://github.com/RowlandR/TileMap-Rendering-Efficiency/blob/main/Screenshot%20(102).png

If you have any comments or something like that (or anything like this project because this is an interesting problem), feel free to ask/answer in this thread.