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 ucefemad · Sep 24, 2014 at 05:18 PM · rigidbodyfpscarframeratesketchup

When I Play..Framerate is 1.5!!!

I'm trying to make a simple driving game, I wrote this code in the update function of the car "gameObject" function Update () { if(Input.GetKey(KeyCode.UpArrow)){ gameObject.transform.Translate(0,0,2); } }

Then I start playing.. I Press to Up Arrow key, and the game is down from more than 60fps to 1.5fps! why ?!

UPDATE!!! This error is caused if I add a Rigidbody Component to my car!.. I Don't want to remove the rigidbody component, so what should I do?!

ANOTHER UPDATE!!!!!!

I Fixed that error, it have nothing to do with my problem!

I Noticed that my Car is having sooo many meshes, I think that's why it lags, so the question now is, how to export this car as a whole From google Sketchup! I mean to make it only one mesh.. not multiples meshes

And this is a screenshot.alt text

screenshot (7).jpg (215.2 kB)
Comment
Add comment · Show 3
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 Graham-Dunnett ♦♦ · Sep 24, 2014 at 05:20 PM 0
Share

I suspect it's the error message in red at the bottom of the window ("Compute mesh inertia tensor failed") that is causing the slow down.

avatar image 767_2 · Sep 24, 2014 at 06:07 PM 0
Share

use the profiler find which part of code does that

avatar image Kiwasi · Sep 24, 2014 at 07:07 PM 0
Share

$$anonymous$$ultiple errors will kill your framerate. Fix the error in the console at the bottom left of the screen. Also remove any Debug.Log statements you have running around.

3 Replies

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

Answer by zugsoft · Sep 25, 2014 at 12:48 PM

Export your Sketchup to 3ds or obj. Import it to Unwrap3d, and export to fbx, by default it's only 1 mesh. You can also reduce polygon count with unwrap3d.

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
avatar image
0

Answer by KMKxJOEY1 · Sep 24, 2014 at 07:53 PM

Regardless of the amount of draw calls your car is, the amount of polygons being rendered will still evoke graphical lag. I suggest you use a less high-poly model; any video game 3D artist knows that being conservative is import (So don't just download models from the Sketchup Warehouse).

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
avatar image
0

Answer by LSPressWorks · Sep 25, 2014 at 04:35 AM

That error seems to appear most often when you have a 2d plane attached to moving rigidBody.

Are you using a plan instead of a cube for the road by any chance?

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

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

OnTriggerEnter not functioning 0 Answers

Car Accelerate Over Time. (JavaScript and RigidBody) 2 Answers

Why do newer versions of Unity have problems with framerate never exceeding refresh rate despite vsync settings being turned off? 0 Answers

Rigidbody, Front slides toward Gravity down Hill 0 Answers

Car not rotating when grounded 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