-
-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue/#133 inspector lag #264
base: master
Are you sure you want to change the base?
Conversation
…y improve the gathering of the required properties and attributes
Thanks, I will test it. BTW, I am no longer supporting v1, but thanks for the update there as well |
No Problem, |
…in the base property drawers but dont know how to reach them
…t have to worry about memory issues
#133 for reference |
@dbrizov is this going to merged soon ? |
I have been using this branch daily for the last couple of months and it works great! Really sped up the editor and almost no bugs to be found (The only thing I noticed is weird issues with having more than one ValidateInput tag in the same class). Just want to say I recommend merging this into main! |
@oprel |
@niggo1243 I was away from work for a bit, so I'm sorry for the late response. Here's an example script to reproduce the validator issue:
|
@oprel Do you have my latest fork commit/ release? Let me know, if it still occurs on the newest version. |
@niggo1243 Ah, I'm terribly sorry. I thought I was updated to the most recent commit, but after checking it seems like I was actually behind. Downloading your latest commits made the problem go away instantly. Thank you very much for the quick response! Once again, highly recommend merging this into main! |
@niggo1243 It seems your approach is still causing a lot of GC Allocation even when nothing changes in UI. Unity uses some cache in it's display such as those listed here https://github.com/Unity-Technologies/UnityCsReference/blob/2020.3/Editor/Mono/ScriptAttributeGUI/ScriptAttributeUtility.cs |
@snorrsi |
@niggo1243 There are more improvements to be made, I will add more to the branch when I have time to profile it better. |
Hi @snorrsi So your version might be the way to go in terms of less maintenance needed compared to mine, at least at first glance. |
thanks for this, significantly less laggy! |
Performance improvement v1 by fetching all relevant properties and attributes on "OnEnable" and not every OnInspectorGUI call.
There is still room for improvement by using delegates or checking validation and visibility every x seconds and fetching the info per object and not for all (although the unity api makes it difficult) but its a noticeable start.
Tested on the Test Scene but peer review would be appreciated!
Thanks for the awesome project!