• 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 Wenon · Apr 12, 2018 at 08:38 AM · modellaggysketchup

Model with a small amount of polygons causes lags

Hello, I would like to ask someone to see the model and check what can cause fps declines when the model appears in front of the camera. There are two models because this is articulated bus, in total, these two models have about 450 polygons. There is a slight drop in fps on the android when the model is visible, you can not see anything special in the profiler, camera render raising only a few percent. Model is made in google sketchup, not by me. I tried to import as in the tutorials. Can it be a transparent texture on the windows? Please just check the model. MODEL DOWNLOAD alt text

przechwytywanie.png (37.1 kB)
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 Harinezumi · Apr 12, 2018 at 09:58 AM 0
Share

What type of material do you use on the model? If the model is not too complicated, then it is probably the shader that causes issues. Also, what other scripts are on the objects? $$anonymous$$aybe those are causing the performance drop.

2 Replies

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

Answer by Bunny83 · Apr 12, 2018 at 09:54 AM

I have no idea where you got your number 450 from. Here are only the first model stats:

 // PartName        Verts   Tris    submesh  Count  T_Vert  T_Tris
 // -------------------------------------------------------------
 // Bus Body        1068    921        7      x1    1068    921
 // Door             152    268        4      x4     608    1072
 // Wheel            130    150        2      x4     520    600
 // Lower Body       130     80        2      x1     130    80
 // Wheel cover       36     20        2      x4     144    80
 // connector         96     52        1      x1      96    52
 // driverwindow      88    132        3      x1      88    132
 // SideWindow        96    148        3      x9     864    1332
 // BrakeLight        40     20        2      x4     160    80
 // ---------------------------------------------------------------
 //                                                 3678    4349


Since all materials by default uses the Standard shader you get several batches for each part due to lights, shadows, ... The whole model issues 102 batches with the standard shader. The vertex count of each subpart is too high for dynamical batching. The model uses 11 materials. When the model is statically batched we get 44 batches (4 x 11). Though static batching is only an option if the model does not move and have no moving parts.


To sum up: This is a very bad model for a game. It uses not a single texture but only solid color materials. The optimal case would be two materials (1 opaque, 1 transparent) and each with a single texture. Though this model has way too much detail in the geometry which could have been drawn on the texture / normalmap. Only the 9 side windows have 864 vertices and 1332 triangles which is more than the whole body. The wheels also have way too much geometric detail.

WheelMesh

When a texture would have been used a single wheel (with 12 steps) would only need 48 vertices and 44 triangles. Also if the poly count becomes a problem the inner face of the wheel could be cut out (which would mean -10 triangles -12 vertices)


This is a very bad model for use on mobile devices.


wheelmesh.png (16.4 kB)
Comment
Add comment · Show 1 · 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
avatar image Wenon · Apr 12, 2018 at 10:24 AM 0
Share

Thank you for your answer, you are right. About polygons, I took number from there: LIN$$anonymous$$ I will rework the whole model and I will have to watch tutorials about texturing.

avatar image
1

Answer by filibis · Apr 12, 2018 at 12:00 PM

The busses are poorly designed. The problem you encounter is mostly because the model has a lot of backfaces and leaks (not water tight) appears around geometry. Take a look at the model i edited and compare it with the original (and test if it improves performance in Unity). It still might cause problems, because you can see backfaces from windows. So bus structure and doors should have a thickness in that case.


SKP_BusArt1A_edited


alt text


busart1a-edited2-v2015.zip (129.2 kB)
bus-edits.jpg (413.5 kB)
Comment
Add comment · Show 3 · 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
avatar image Wenon · Apr 12, 2018 at 03:17 PM 0
Share

Thank you! Yes, I think it is better.

So bus structure and doors should have a thickness in that case.

Do you mean that it can't be flat with visible faces from every side but interior should be modeled separatly? Walls, doors have thickness with empty space inside and faces inside should be invisible right?

avatar image filibis Wenon · Apr 12, 2018 at 05:38 PM 1
Share

I didn't really understand your question.

In a nutshell: Everything your eye/camera sees must be front face (white color by default in SketchUp).

In this case, bus body, doors & windows have 0 thickness, thus we see 'inside of mesh' (backfaces) from windows which is not desirable. You need to increase thickness of the model. JPP plugin might come in handy for the process.

Example: thickness_example

avatar image Wenon filibis · Apr 12, 2018 at 06:56 PM 0
Share

Thank you, you explained very well, the plugin will be very useful

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

82 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

Related Questions

Transform component does not line up with model 2 Answers

Google Sketchup models appearing badly 2 Answers

Incorrect point light act on imported .fbx model (sketchup) 4 Answers

Import Model Question (.obj Sketchup) 0 Answers

Google Sketchup FXB or DAE 3D Model Not Importing Correctly into Unity 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