Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity Enter Playmode slowdown: "Update Cursor" process

Discussion in 'Scripting' started by FeastSC2, Jun 11, 2021.

  1. FeastSC2

    FeastSC2

    Joined:
    Sep 30, 2016
    Posts:
    978
    I have domain reload disabled which used to make me enter playmode very quickly.
    Now it takes more time, around 4 seconds, when I come in or out of playmode. This happens even on scenes that are empty.

    Here's what my profiler shows on the frame where it's entering playmode.
    It looks like the process "Update Cursor" is slowing down the process significantly. But I don't know what that is.
    Does someone know what I can do in order to fix this?

    upload_2021-6-11_2-50-24.png
     
    Last edited: Jun 11, 2021
  2. FeastSC2

    FeastSC2

    Joined:
    Sep 30, 2016
    Posts:
    978
    Any idea what's going on?
     
  3. FeastSC2

    FeastSC2

    Joined:
    Sep 30, 2016
    Posts:
    978
    The issue was that the the custom mouse cursor I had put in was 2048x2048pixels.
    Somehow that triggered 200000 UpdateCursor calls in OnEnterPlayMode
     
    Yoreki likes this.
  4. Yoreki

    Yoreki

    Joined:
    Apr 10, 2019
    Posts:
    2,605
    I put this thread on watch since i thought it was interresting. You now came back to post your solution roughly half a year after posting the problem. Which is great!
    I'm just curious, but how did that happen? Did you come back to the problem and solve it? Did you start a new project, encountered a similar problem and thus found out the solution to your old problem? Or did you ignore the problem for a year and accidentally switched out the cursor image and saw the problem disappear?

    I'm honestly curious :D
     
    Last edited: Feb 16, 2022
  5. FeastSC2

    FeastSC2

    Joined:
    Sep 30, 2016
    Posts:
    978
    A kind soul helped me out :)
     
    Yoreki likes this.