• 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 /
  • Help Room /
avatar image
0
Question by gregop2 · Apr 27, 2017 at 09:49 PM · laggy

Hello, I get consistent lag spikes.

Hello, I have been dealing with this for over a year. several iterations, maps sizes, water, not water, tenkoku, no tenkoku, lots of buildings, not lots of buildings. It does not seem to matter, If I turn to quickly, or run, it will drop 20-30 points for a second or a few seconds to catch up, then it works smooth again. So it happens when I am am 145 frames per second, it will drop to 105, then go back up. or if I am at 35 fps, then it will go from 35 and drop to 12-15 fps for a few seconds, the it will catch up, then it will go back. How do I prevent it from dropping 20-30 points. Please help.

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Jawchewa · Apr 28, 2017 at 03:02 AM

I can't be sure entirely how to fix your problem without thoroughly looking through your project, but I would recommend using Unity's Profiler to determine what the cause of your lag spikes is. Here are a few resources to help you get started:

https://unity3d.com/learn/tutorials/topics/interface-essentials/profiler-overview-beginners

https://docs.unity3d.com/Manual/Profiler.html

https://unity3d.com/learn/tutorials/temas/performance-optimization/profiler-window

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 gregop2 · Apr 28, 2017 at 03:54 AM

Yes, thanks for your quick response. However let me make this situation more clear. I do use the profiler, and yes, I know what causes the drop. It's the water, so I remove the water, or what ever innitiates the lag. My point is it should not lag, So, once again, if I was at 145, it will drop to 105 or 90, If I am at 35 it will drop to 15. I can keep on removing all the items that initiate the original cause, grass, trees, water, sky, buildings, script. And I can run around at 180 fps per second. That is not the point. The problem, is that is seems like the UNITY engine, has to catch up for a second or two, then I can continue on. If I run super fast, and turn, it will happen. Its a a catch up situation. I know that this does not happen in the succsessful Unity games out there. This has got to be a common problem, in that I have been experiencing it for over a year now, in many, many, many projects. I am getting towards the end of the project, and now I need to solve this problem. Any help will be helpful.

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

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

99 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 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

I have a large number of small lights animated in my scene; is there a way to make this not horribly laggy? 1 Answer

Unity Editor - steady lag increase over time until window is refocused 1 Answer

Unity assets loading too slowly 1 Answer

Camera follow target glitches 1 Answer

How do I decrease VRAM usage? 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