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 Steve Edwards · Feb 23, 2011 at 10:29 AM · efficiencydrawingocclusionpolygon

Geometry efficiency?

I'm wondering if a polygon takes as long to draw depending on whether it is partly occluded or not, or whether its size affects drawing time.

To give a really simple example: Suppose I have two identical cubes A & B in the same position, now I make cube B thinner, but also taller so it is protruding out of the top of cube A. Now, is it beneficial to also bring the bottom edges of cube B up to the top of cube A, i.e so there are no hidden parts of the polygon?

My thinking is that the end result looks the same, but because the side faces of B will now be smaller, Unity won't waste time drawing/filling unnecessary parts that wouldn't be visible anyway. But I hope I'm wrong... I'm making a lot of blocky architecture, and it's much easier to just let some blocks overlap than resize them. The poly count is the same but I'm worried those partly hidden faces might add to drawing time significantly.

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
0

Answer by Steven-1 · May 06, 2011 at 10:34 AM

As the polycount (and more importantly, the vertexcount) stays the same, it will make no difference to the vertexshader. But, in general, it will increase the rendertime for the pixelshader.

In your example, if blok a is rendered first, then B, it won't make much difference, as the part of B that is behind A will be culled. But if it's the other way, B will be drawn completely and then A will be rendered on top of it. But normally, you can't really decide in which order it will render, so the answer is, yes, it will take more time, but how much depends on the scene, the shaders and the computer.

(yeah, old question, but I just happened to stumble upon it)

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

How to find out how much of a Polygon is filled? 0 Answers

Draw 2D polygon 1 Answer

3ds max Attach poly problem with Occlusion Culling 0 Answers

How do I draw directly (and quickly) into the rendered frame? 1 Answer

how many face is suggested per object, per project 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