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
1
Question by Jake-L · Mar 29, 2011 at 08:22 AM · editorfpseditorwindowongui

Huge Performance difference between docked and undocked EditorWindow

Hi,

I've got a custom EditorWindow that is not a Utility-Window. When this window is docked, my FPS within the editor is around 1870 (0.5ms/frame). When I undock this window, FPS drops down to 310 (3.2ms/frame), no matter what I draw in this window (even when skipping OnGUI)

True, doing a lot of stuff inside the EditorWindow will affect performance, but this should be (more or less) the same whether the window is docked or not, right? Especially if I skip OnGUI and disable any refresh, there shouldn't be any overhead.

Anyone got an idea what might be the reason for this difference?

Regards Jake

Comment
Add comment · Show 6
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 efge · Mar 29, 2011 at 09:45 AM 0
Share

If you are on Windows 7 you could try to disable Aero.

avatar image Joshua · May 27, 2011 at 03:48 PM 0
Share

It's potentially because it has to calculate the size of the window for every frame. If it's docket it already knows the size.

avatar image Peter G · May 27, 2011 at 05:42 PM 0
Share

Good thing there won't be any end users playing in the editor

avatar image Joshua · May 27, 2011 at 05:46 PM 0
Share

Someone on the forum also speculated that this might be one of the reasons why the webplayer is so much slower then standalone.

avatar image TowerOfBricks · May 27, 2011 at 06:15 PM 0
Share

But in the webplayer it should know the size, wouldn't it? It is after all set in the css (or similar).

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

Event.current not fired after BeginWindows() on an EditorWindow 0 Answers

How to force Unity to Repaint an EditorWindow? 1 Answer

OnGui elements as objects? 2 Answers

Unity doesn't support generic editor windows? (GetWindow ) 3 Answers

How to draw button in editor window rotated by 90 degrees? 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