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
2
Question by Daniel · Jun 22, 2010 at 01:04 PM · browsercpu

High CPU usage in browser

I noticed high CPU usage if I'm running unity app in Firefox, not sure about other browsers. Even for very simple project (one box and one camera with very simple movement script).

I have Core 2 Duo and one of the CPUs is used up to 100% sometimes, usage jumps from 0 to 100% without any activity. Especially it going up if i'm switching to another tab (just for regular surfing). Such behaviour makes browser usage (with unity game open in one tab) very uncomfortable.

Is it possible to fix it somehow?

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

1 Reply

· Add your reply
  • Sort: 
avatar image
3

Answer by jonas-echterhoff · Jun 22, 2010 at 02:41 PM

There are two things you can do to change CPU load.

One is the "run in background" checkbox in the build settings. If that is checked, you should not get any CPU usage when unity is not in the front window/tab.

The other relevant setting is Application.targetFrameRate. By setting this to a lower value, you can tell Unity not to try to run at any frame rate higher then what you set here, and idle for the remaining time.

Comment
Add comment · Show 2 · 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 Daniel · Jun 23, 2010 at 08:04 AM 1
Share

Looks like it is some problem with unity plugin for firefox. I checked IE and Chrome, they working fine.

I made some tests on multiple PCs. Problem is 100% reproducable. If unity application is opened in one tab, switching to another tab causes 100% CPU usage. It doesn't depend on "Run in background" checkbox.

I will do more tests with Application.targetFrame rate later.

avatar image jonas-echterhoff ♦♦ · Jun 23, 2010 at 08:31 AM 0
Share

Ok, this sounds like a bug. As I'm only working on the mac side of things i cannot tell you anything specific about it - it could be our bug, or it could be mozilla's, but in any case I suggest reporting it using our bug reporter.

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

No one has followed this question yet.

Related Questions

Embed Web Browser into unity 4 Answers

Best Practices, GUI and Browser Zoom, Scaling 0 Answers

Best method; Multiplayer server browser/lobby? 1 Answer

Would it be possible to make an in-browser game? 2 Answers

[FIXED]Application.URL woes 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