Lag when shooting a object with health attribute.

sneekyo

Member
Not all the time but sometimes when I shoot an item set up with a health attribute I get a burst of lag, like a split second freeze, then my camera is facing a wildly different direction. Is there some trick to fixing this issue?
 
If it's related to object pooling you can pre-instantiate the object on the ObjectPool component. Besides that you'll need to profile to determine the lag.
 
Top