Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
0
Question by OmegaVemon · Nov 24, 2010 at 05:00 AM · performancerenderer

Renderer disabled = Any good?

There are a few questions I have been having since ever:

If a gameobject, dunno, a cube, is not visible in the screen (the player is facing somewhere else), is the renderer active at all? Basically, in that case, the renderer is not enabled, or is it?

Is there a difference having 3000 objects, non visible because I am facing somewhere else, and all having their renderers disabled, or having 3000 objects (not visible too) but with their renderer component enabled?


What is the most consuming activity a common gameobject (lets say, a sphere) might be doing? Can it be disabled to save performance?

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by Yoerick · Nov 24, 2010 at 05:38 AM

Unity automatically uses frustum culling, which means that if an object is behind the camera or simply out of the camera's view, it's not rendered. So turning off all the renderers of the objects doesn't do anything if they're not in the view anyway.

The most consuming activity for a GameObject would probably be calculating its lighting and shadows if there are any. If it's a common object, the gameobject on itself doesn't do much to the performance. However, if you have a giant object with a lot of vertices and triangles it gets harder to render it and your framerate will go down.

If you want to increase the performance you might also want to check out your camera settings and, if there are any, light settings.

If you have Unity Pro you could apply occlusion culling to your cameras, this will make sure the camera doesn't render objects that are behind other ones. The standard frustum culling only culls the objects outside of the cameraview, everything inside the view is rendered, even if it's behind another object and actually not visible.

Another thing that could drain alot of performance is the use of particle systems. But that depends on the amount of particles they emit.

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

No one has followed this question yet.

Related Questions

What's wrong? Heavy game for Mobile ? 1 Answer

Is it better to destroy and instantiate or turn off mesh renderer? 1 Answer

Empty Renderer 1 Answer

What's the best way to make a long scrolling list of items? 0 Answers

Changing two different objects renderer colour 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