Game Development Community

Tile Map Efficiency

by James Johnson · in Torque Game Builder · 07/12/2005 (12:44 pm) · 8 replies

What would be more efficient for a displaying a big tilemap level, say 100 x 100 tiles. Setting the tilemap to the size of screen and use scrolling to move around or just placing the full map in the scene and moving the camera?

I've tried it both ways and haven't seen a framerate drop on my system but I'm curious as to which would be proper.

About the author

Recent Threads

  • Angled Collsions

  • #1
    07/13/2005 (12:15 pm)
    If you don't rotate the tile-layer, you'll get approximately the same results. If you rotate a tile-layer then eeeekk, you'll get huge differences in which case, setting the tile-layers window to be small (probably the size of the screen) and scrolling the map is many times more efficient.

    - Melv.
    #2
    07/13/2005 (2:33 pm)
    Thanks, that's exactly what I wanted to know.
    #3
    07/15/2005 (8:46 am)
    Quote:
    ... and use scrolling to move around ...

    What do you mean by scrolling? I thought that would be moving the camera...
    #4
    07/15/2005 (9:51 am)
    Scrolling the tilemap to get the effect of moving the camera.
    #5
    07/15/2005 (12:26 pm)
    You mean change the tilelayer's coordinates instead of the camera's coordinates?
    #6
    07/15/2005 (1:41 pm)
    Michael,

    I presumed James was referring to panning the tile-layer, not moving the layer or the camera, using either "setPanPosition()", "setAutoPan()" or "setAutoPanPolar()" to pan the tiles.

    - Melv.
    #7
    07/15/2005 (2:28 pm)
    That's what I guessed. Couldn't think of any other way.
    Thanks.
    #8
    07/15/2005 (8:24 pm)
    Yes, I was referring to panning the layer.