Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
1
Question by TimeFalling · Sep 07, 2018 at 10:14 PM · tilemapperformance optimizationmaptileslarge

How to improve the perfomance of a large rule tile based tilemap?

I have a big tilemap with 800x800 rule tiles. I could use normal tiles, but i want to use the rule tile feature for my map. Is there any way to improve the performance of my rule tile based tilemap?

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image eses · Sep 08, 2018 at 09:30 AM 0
Share

Hi @TimeFalling - You have more than half a million tiles. I don't think Unity tilemap system is meant to be used for such large tile counts.

This question / answer in stackexchange might be useful:
https://gamedev.stackexchange.com/questions/151048/what-is-the-size-limit-to-the-unity-2017-2-tilemap

avatar image wladyslaw · Sep 25, 2018 at 05:12 PM 0
Share

Contrary to eses, I think that 800x800 size should be still fine for Unity's Tilemap system. It should be multi-purpose after all.
Regarding your problem, it's hard to tell without knowing more details. What I noticed is that batching tile placement by using SetTiles and SetTilesBlock doesn't help much, at least with rule tiles.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by wladyslaw · Sep 25, 2018 at 05:35 PM

A rule (nomen omen) of thumb would be to define the rules for tiles in an order reflecting the probability of their occurence, so that we skip as much cases to check as possible. For example, if you have large areas of grass, then it would make sense to define the rule for most common “inner tile” (with all neighbours being grass too) in the first place.

Actually I haven't applied this approach to my current project and this question encouraged me to test it. So I have a 800x800 grid with a few tilemaps, having 1,2 mln tiles in total with around 0,5 mln of them being rule tiles with 48 rules. The rules were ordered kind of randomly with the most common inner tile rule being on 6th place of the rule list. It took 66 seconds for my quite good laptop to generate this tilemap.
After switching the inner tile rule to first place, I saved 10 seconds. Ordering the other rules properly would maybe give me another 10. Not very impressing, but that's always something.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

152 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Tile pallet doesn't exist in Unity 2019.2.12f1 personal! How to re-enable it? 1 Answer

How to get a fluid color transition for every tile in a tilemap? 0 Answers

Tiles strech weirdly 0 Answers

Move Object around a platform of tiles 0 Answers

I have displaced tIles depending of the game resolution 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges