Page 1 of 1

GC.Alloc occurs each time PropertyChanged is executed.

Posted: 23 Nov 2018, 12:08
by arukari
GC.Alloc occurs every time PropertyChanged is executed?
(in Unity MonoBehavior.Update)

Image

Re: PropertyChanged occurs every time is GC.Alloc.

Posted: 27 Nov 2018, 11:48
by jsantos
Probably because a new PropertyChangedEventArgs is being create each time. This is something we should optimize by using pools for example. I want also to investigate if WPF is doing the same. Could you please file a ticket in the tracker?

Re: PropertyChanged occurs every time is GC.Alloc.

Posted: 28 Nov 2018, 05:47
by arukari
Probably because a new PropertyChangedEventArgs is being create each time. This is something we should optimize by using pools for example. I want also to investigate if WPF is doing the same. Could you please file a ticket in the tracker?
hi,
I tried to register as a tracker, but I did not receive an email.
(tried live-mail and gmail.)
thanks.

edit:
sry, I received email. so late..

Re: PropertyChanged occurs every time is GC.Alloc.

Posted: 29 Nov 2018, 18:38
by jsantos
sry, I received email. so late..
Sorry about it, it seems the tracker is not sending the emails on time. We are working on it. Thanks!