Oshigawa
Full Member
 
Posts: 228
Posts: 228
|
Post by Oshigawa on Dec 3, 2021 19:48:54 GMT
Hello Brian,
i'm doing some optimization on my pools, there's some instantiations involved when to cut down on pooling time. Anyway, the Instantiate.Copy causes some GC and hiccups from time to time. Call from the profiler points to KillerVariable.cs. I see that KillerFloat and KillerInt are inheriting from the class and they are used for World Variables. Thing is, i don't use no World Variables in the game.
|
|
|
Post by DarkTonic Dev on Dec 3, 2021 20:35:28 GMT
I believe that's due to having to copy the KillerFloat and KillerInt classes when cloning game objects that use Triggered Spawner, Killable and other scripts that have World Variable references, whether you're using them or not.
Could be wrong, but not sure how to really dig down into that. Let me know if you figure out anything further.
|
|
Oshigawa
Full Member
 
Posts: 228
Posts: 228
|
Post by Oshigawa on Dec 3, 2021 21:01:50 GMT
Hmm, i'm not using any of those, i'm using CGK for Pool Boss only. Will check everything out though and get back.
|
|
|
Post by DarkTonic Dev on Dec 3, 2021 21:17:00 GMT
If you don't plan on using anything but Pool Boss, you may be better off using the Pool Boss standalone plugin. We could get you a voucher for it if you email us your Asset Store Invoice PDF file.
-B
|
|
Oshigawa
Full Member
 
Posts: 228
Posts: 228
|
Post by Oshigawa on Dec 3, 2021 22:23:53 GMT
Thanks, check your PMs.
|
|
|
Post by DarkTonic Dev on Dec 3, 2021 22:25:31 GMT
Replied, thanks!
|
|