• 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 bman85 · Oct 07, 2013 at 02:58 AM · lagslow

How can my game be so slow?

My game contains 8 cubes and a first person controller and it is taking like 5 minutes per frame. Each cube has a texture. Everything is working well except the game view. It was working very well up until like 3 days ago and now it takes like 15 minutes just to move. What could be going wrong to make it go so slowly?

Comment
Add comment · Show 4
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 FrankStarsKo · Oct 07, 2013 at 03:30 AM 0
Share

can you be more specific? show a screenshot at least because no one here is a witch to help you with that little information.

avatar image sotirosn · Oct 07, 2013 at 04:41 AM 0
Share

If you have unity pro you could use the profiler. How much rendering and scripting is there?

avatar image bman85 · Oct 07, 2013 at 05:48 AM 0
Share

There is not much scripting. There are only like 3 scripts total right now and they are very short. The game had been working from the beginning and then stopped working one time when I pressed play.

avatar image MrProfessorTroll · Oct 07, 2013 at 07:38 AM 0
Share

Well I had a similar issue. I found out that my pc was on power saver which gave my game 40 fps. I put it in high performance and I get 160 fps. If this is not the problem, maybe your computer does not meet the program's requirements.

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by tanoshimi · Oct 07, 2013 at 06:53 AM

5 minutes per frame is not "slow" - it's catatonic! ;) Have you adjusted Time.timeScale? Do you have any potentially infinite, or near-infinite loops?

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 sotirosn · Oct 12, 2013 at 04:17 AM

Make a brand new project with nothing in it, run it and see if it is also slow. If it is not slow add stuff from the slow project to the fast one, one by one, and see if it slows down.

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 Kawaburd · Oct 12, 2013 at 04:31 AM

Since there's so little stuff in there, I'd give your game (particularly the scripts) a good run-through with a fine toothed comb, so to speak. Find possible causes, because with this little information I have no clue. On top of infinite loops, if you're using translate to move things, I'd also check to make sure they aren't just being moved at infinitesimal(really really tiny) speeds.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

21 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

Related Questions

Bad Performance on Mobile. 0 Answers

Why does unity crash leads to direct3D and hardware acceleration disappear ? 2 Answers

Why is my game slow when i export it to Windows? 1 Answer

Why does simple animation make my game lag? 2 Answers

Unresponsive Unity Editor 2 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