• 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 /
avatar image
0
Question by 4illeen · Oct 16, 2013 at 06:17 PM · importperformancemodel3d modelscity

Best performance for repeatable objects in a City scene.

Greetings. I'm currently working on a project which includes a city/street filled with fully explorable buildings. Each window and door is openable, etc. As I've encountered some performance issues already I guess it's best to ask before doing anything further.

My idea was to make some building elements saved as separate models, which will later allow me to build different buildings from the same parts (I also have heard that reusing same assets helps with performance). Think of it as of Lego blocks. I have things like Floor model, Wall model, Stairs model, Door model, Window model etc.

In my situation, what's the best way to make it work without lagging? What are the steps I should take from the moment of asset import to ensure good performance? Would it actually be better to make whole building models and import them into Unity? Since all doors and windows are interactive I'd have to add them later.

PS. None of the stuff I use is high-poly

Comment
Add comment · Show 1
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 TimBorquez · Nov 06, 2013 at 09:44 PM 1
Share

this is kinda unrelated to your actual question but you can use occlusion culling to help performance alot in cities

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Phong · Nov 06, 2013 at 10:54 PM

You probably want to use triggers to hide and show the interior meshes on all the buildings. For example you could put a collider around the entire building, set it to be a trigger. OnTriggerEnter you would enable the interior game objects. OnTriggerExit you would disable the interior game objects. You could even do this on a level by level or room by room basis as well.

I have an asset Mesh Baker LOD that does something similar in a very efficient way.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

16 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

Related Questions

Importing Luxology Modo's compound 3d model 1 Answer

Import (Plz Help) 1 Answer

Getting out mesh filter from imported model 0 Answers

Changing Settings for Mesh Collider on Model does not update Prefab as expected? 0 Answers

Importing joint objects from Blender - default rotation and scale values 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges