Prefab Variant a terrible lag bug when preview at Select in project

CPU:I5-9600K
GPU:GTX1080
RAM:16G
Unity:2019.2f5

when i select a prefab in project, the editor will a terrible lag

here is the record with 60FPS,you can see what i say
because my english is not so good,so you can see the video first

Unity 2019.1
Unity 2019.2
Unity 2019.3
all version will happen!!!
Only normal before the 2018.3 version of the new prefab system

4973078–484550–bandicam 2019-09-18 01-52-49-869_BiliBili.zip (2.54 MB)

People aren’t going to download zip files of your video. That’s a pretty common way of spreading malware. Just post a video to youtube. Also, you should mention the hardware specs of your machine.

ok now i upload to youtube

Yeah, it happens for me as well.
This is probably due to some script modifying prefab while drawing inspector that causes re-saving of the prefab.

It happens on non-variants also.

If you can, submit a bug report for this one please. In my project prefab that bugs-out is pretty tightly coupled, so I can’t send minimum repro without a lot of pain.

the problem is there is no any debug.log print,so i can’t report anything,now i found a new way to Repeat it:

1、download the Kinematic Character Controller
[https://assetstore.unity.com/packages/tools/physics/kinematic-character-controller-99131]

2、drop the motor script to gameobject
3、make this gameobject to prefab
4、select the prefab in project windows

ok,now you will see the terrible lag

Just upload your repro project via Help → Report a Bug.

1 Like

It look like the "OnValidate” every frame is called