• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
Penis Mesh Colliders

Plugins + Scripts Penis Mesh Colliders

// reset detections which might have been turned of by pop out prevention previously
_gen1.detectCollisions = true;
_gen2.detectCollisions = true;
_gen3.detectCollisions = true;

// avoid pop out
bool popOutDetected = _avoidPopOutJSON.val &&
.......

That bool define right in the middle of FixedUpdate() means every loop it re-allocates some memory - should define the variable outside the loop in the init section then re-use it.
In the case of primitive types, since it is allocated on the stack area, it is not related to memory leaks, right? If I'm mistaken/wrong, please let me know.
I hope you don't misunderstand, I just want to know exactly how to avoid leaks. :D
 
Last edited:
So is this supposed to be added to the male or female atom? Seems like very important information that should be in the description.
 
Back
Top Bottom