I’m working on a tycoon game, and I’m experiencing a performance issue with SimpleZone during the loading & unloading phases of a tycoon. When a player joins the game, the tycoon is gradually parented into the game to resolve any spikes with replicated packets. However, I get large frame spikes solely from this module since the microprofiler gets filled with SimpleZone
tags where it seems the module is iterating and indexing thousands of parts with the Size
property.
Any ideas on what I could be doing wrong? I’ve included a microprofiler log of one of the spiking incidents.
For context, most of my zones have OverlapParams
for a specific folder in the workspace. There is only one type of zone for my stylized water parts for listening when any parts enter to produce a ‘splash’ effect. All the zones I use are constructed through fromParts()
and are given an array with a single part.
Thanks!