• 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 UT_Juni · Jan 27, 2018 at 07:23 PM · profilercpu usagespikes

UpdateScreenManagerAndInput, which takes almost cpu usage in a profiler

What is it? I can't get any information about it in a profiler It just takes almost cpu usage and my mental health too. It makes fps fall under about 40fps in a VERY SIMPLE GAME EXAMPLE, not to mention about my game project. What is it? And how to get rid it?

because of not coroutine, simple game example just has player reacted by direction button.

alt text

updatescreenmanagerandinput.png (110.7 kB)
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 SlothKing · Jul 01, 2018 at 12:05 AM

I ran into this problem in one of my projects recently and thought I'd share my solution since there doesn't seem to be a whole lot of information online about this.

I'm not sure if this problem is specifically related to referencing the Input class or Image class, but here was my solution. In my input manager's Update method I was calling Input.GetMouseButtonUp(0) and then executing a block of code. After optimizing that block of code (specifically, I removed a line which was updating an Image color via Image.color = someColor which seemed to be causing the majority of the performance hit) the UpdateScreenManagerAndInput spikes I was experiencing in the profiler went away and my game's FPS returned to normal.

I hope that helps you and/or anyone else who is experiencing this tricky problem!

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 idbrii · Aug 09, 2018 at 05:40 PM

From a "UpdateScreenManagerAndInput & Unaccounted Time" forum thread:

I just so happened to have plugged a PS3 controller into my MacBook before this happened. So I unplugged it. Everything returned to normal.

Try unplugging some USB devices!

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

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

Minimizing spikes in Profiler? 0 Answers

Semaphore Wait for signal accounts for 80% of total cpu usage. 1 Answer

Huge Physics Spikes (In empty scene and populated scene) 6 Answers

GPU profiling time not adding up properly and GPU taking up lots of time 2 Answers

Need help profiling first game. Huge GPU spikes? 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges