Hello Guest

Author Topic: Hope to optimize large TileMap load speed!  (Read 3730 times)

stevexu

  • Newbie
  • *
  • Posts: 29
    • View Profile
Hope to optimize large TileMap load speed!
« on: December 02, 2013, 03:25:23 am »
I have a tmx map with width = 860 .height = 80 ,partitionSizeX = 8,partitionSizeY = 8 .When I import to unity, it cost me about 20+ minutes.  :'(
 After imported, I click edit button to edit the tilemap in unity, it also take a long long time .
 :'(
 
It  make me crazy!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Hope to optimize large TileMap load speed!
« Reply #1 on: December 02, 2013, 12:32:10 pm »
Why is your partition size so low?

stevexu

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Hope to optimize large TileMap load speed!
« Reply #2 on: December 02, 2013, 02:55:38 pm »
Most of the box size is n*8 , so there is no gap between two box. So I set partition size to 8.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Hope to optimize large TileMap load speed!
« Reply #3 on: December 02, 2013, 06:15:14 pm »
You should test with a larger partition size (32x32) if it improves performance. 8x8 creates a load of game objects per layer, loads of renderers and meshes, etc. Thats about 1080 of everything there, assuming you have one layer, add another 1080 per layer of things in there.