Camera vs scrollview on smartphone

Hi all !
I’m currently working on a smartphone project. I want to display a huge 2d map (32kx32k) using LOD.

I’m wondering which is the best way to move inside the map :

  • implement my own camera, that controls everything (zoom, move …)
  • use a scroll view and the scrollrect will move the panel containing all the tiles on its own

I’m new to unity development, i don’t know all the pro & cons for each one, and which solution used on a smartphone …

Any ideas ? :slight_smile:

ScrollRect had a horrible reputation for performance. No sure if it’s fixed yet.

Moving the camera is probably a better way to go.

I’d have a hunch that the camera would probably be faster. The rendering system is specifically designed to render quickly from arbitrary camera positions, and the camera is one thing to move rather than many tiles.

That said, if it’s critical and you can then prototype it and test both. Or if the performance doesn’t really matter then take whichever is faster to implement.