• 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
Question by J Rdz · Apr 01, 2013 at 05:49 PM · shaderrenderingperformancemobileoptimization

Rendering a plane is dropping 10 fps

Hi all!

I have a setup with 2 high-poly models and a floor/plane (not a terrain, just a rectangle) with a texture and a skybox

I realized that if the camera barely see the floor the fps go higher, on the other side if the camera is from top and see the floor the fps drop by 10

Not looking at the floor = 40 fps, looking at the floor = 30 fps (please look at the images below)

I'm using the Mobile/Difusse Shader

I thought it was a rasterization issue, so I already tried modifiying the shader to skip the ztest and the zwrite and drawing it first, but still the same

I decreased the Texture size to 256, still the same

No skybox still the same

What seems weird to me, is that without the floor/plane, doing the hardwork of rendering the models it gives 40fps but just adding the 6 vertex or so from the floor it drops 10 fps, that's what I think is a rasterizer issue because when the plane floor covers the the whole screen it visits all the pixels... still 10 fps drop seems too much

Any ideas?

Thank you

J Rdz

Camera looking front, no other models (usually 59-60 fps) alt text

Camera looking at floor ( 51 fps) alt text

slow1.png (21.0 kB)
slow2.png (20.6 kB)
Comment

People who like this

0 Show 11
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 LightSource · Apr 01, 2013 at 06:20 PM 0
Share

How many polys in the floor?

avatar image J Rdz · Apr 01, 2013 at 07:09 PM 0
Share

Just 4 vertices , 2 triangles , it's indexed

avatar image LightSource · Apr 01, 2013 at 08:49 PM 0
Share

Odd, any scripts working when you look at the floor? Hmmmmm, I'm stumped. Did you do anything with colliders? Is the scene baked? I cant really think of why else this is. Does the frame rate drop at any other objects you looks at? Does is matter if your standing on the floor?

avatar image J Rdz · Apr 01, 2013 at 09:52 PM 0
Share

No, no scripts on the floor, it has no colliders on it, its just the gameobject , the shape, the mesh render ( no cast/receive shadows, 1 material, no light probes )

What I do have is a directional light, I think I tested without it before, . The high poly models are affected by the light, though

avatar image J Rdz · Apr 01, 2013 at 09:53 PM 0
Share

Forgot to mention, no standing at the floor at all, the FPS doesnt drop by lookin any other objects

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

13 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

Related Questions

Low Performance when drawing many objects 1 Answer

uGUI Image without transparency/ opaque render queue 0 Answers

What are the best shaders for mobile platforms ? 2 Answers

Is a shader with selective passes faster than a single-pass which uses lerp to enable/disable shader effects? 0 Answers

Is the template containing Shader Graph heavy on performance? 0 Answers


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