Author Topic: Property Binding and memory allocations  (Read 4174 times)

beermoney

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 80
    • View Profile
Property Binding and memory allocations
« on: May 29, 2014, 04:06:10 AM »
Hey Aren,

Are you aware that the property binding are allocating memory in their update?

I have 20 property binding in my scene and getting 1k memory alloc per update.

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Property Binding and memory allocations
« Reply #1 on: May 29, 2014, 07:26:48 AM »
No, but I am not surprised that it does. Reflection always involves some sort of allocation. Even to call a method via Invoke() involves GC allocation. Convenience of C# often has this kind of a downside.