Skip to content
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

Syncvar hooks allocate ~100kb per frame #3594

Closed
JesusLuvsYooh opened this issue Sep 8, 2023 · 0 comments · Fixed by #3615
Closed

Syncvar hooks allocate ~100kb per frame #3594

JesusLuvsYooh opened this issue Sep 8, 2023 · 0 comments · Fixed by #3615

Comments

@JesusLuvsYooh
Copy link
Contributor

Quoting from James:

happens for any syncvar with a hook
will allocate new action every time you set the field
so if you set it to same value every frame (because that is ok with normal fields) it will allocate a lot
so anyone using syncvar with hook should be manually checking value is change
most probably dont know about it, because its a regression lol.
it was caused by some weaver code getting "simplified" and moved to c# instead.
so really that change can be reverted and it'll be fine lol, but I think it was a while ago

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant