• Hi Guest!

    Please be aware that we have released another critical security patch for VaM. We strongly recommend updating to version 1.22.0.12 using the VaM_Updater found in your installation folder.

    Details about the security patch can be found here.
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:
Back
Top Bottom