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.
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.
#2
07/13/2005 (2:33 pm)
Thanks, that's exactly what I wanted to know.
#3
What do you mean by scrolling? I thought that would be moving the camera...
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
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.
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.
#8
07/15/2005 (8:24 pm)
Yes, I was referring to panning the layer.
Associate Melv May
- Melv.