frankvHoof93 / TikTokLiveSharp

Port of TikTok live library for C#
https://vanhoof.dev
Other
139 stars 27 forks source link

Important lag spike in Unity editor #56

Open Kromahtique opened 7 months ago

Kromahtique commented 7 months ago

Has anyone else noticed the Tiktok live connector causing important lag spikes every 4 secs or so?

It is working as it should except for this lag so I am wondering if I have maybe not set something up correctly.

frankvHoof93 commented 2 months ago

Looked at this a bit. I believe it might be Garbage Collection, acting upon the large amount of Classes created for firing events.

Looking into potentially changing this up for a future version (e.g. by re-using pooled instances, switching to structs, pre-allocating more memory, etc.)