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

Editor Playmode Playing in Slow Motion

Discussion in 'Editor & General Support' started by skiwee, Jan 15, 2021.

  1. skiwee

    skiwee

    Joined:
    May 30, 2020
    Posts:
    32
    This happens only when I am using a c# classes with custom attributes on fields to make the inspector look better. The attributes I am using come from Naughty Attributes and Solid Alloy/Solid Utilities.
    Using debug messages, I have concluded that the update loop has been slowed by about 2x thus making everything in playmode run slower. When I turn the inspector to debug mode, thus disabling all custom attributes, the playmode goes back to normal speed. Likewise when I use "maximize on play" it also runs at normal speed because the inspector is not in sight.
    I am fairly sure the problem is with the attributes but these are fairly popular attribute libraries and I don't understand how some custom property drawers could slow down unity so much.
    Any help will be much appreciated :)