Skip to content

Memory Allocation Issue with Tween.Custom Method #74

Closed Answered by KyryloKuzyk
KinanGH98 asked this question in FAQ
Discussion options

You must be logged in to vote

Hey Kinan, thanks for a great thread!

The GC Alloc topic is complicated, and I should write a detailed article on GC memory allocations in PrimeTween. Let me break down your question into multiple answers:

  1. Mono.JIT entries come from the Mono's Just-In-Time compilation. These allocations are inevitable and happen with the Mono backend every time any line of C# code runs the first time. There is no way to prevent them because this is how Mono works. If you want to run any code, Mono should first compile it before running, and this shows in the Profiler. IL2CPP builds doesn't have this.
    To validate this, make an IL2CPP build, attach the Profiler to it, and observe that there are no more Mo…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@KinanGH98
Comment options

Answer selected by KyryloKuzyk
Comment options

You must be logged in to vote
1 reply
@KinanGH98
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet
2 participants