Optimization & Performance

Hi all,

I’m currently developing a game that uses a third person battle royale-like gun framework. The client side of this framework is contained inside a single local script. It includes functions like character rotation to camera, bullet rendering, bullet firing, and more (point is that several intensive functions are handled in this one script). The problem (?) I’m facing is that under the script performance tab it indicates that the activity rate is over 3% (peaks at around 4.5%). My question on this is if this is normal. I understand that the activity rate is obviously high but is it fine to leave this alone as the script includes several complex functions? Or will the script need some optimization?

Thanks. :slightly_smiling_face:

1 Like

That’s not bad at all. I’ve seen scripts get to 10% and still not cause performance issues. If you have a low-end PC and can play the game without issue, I wouldn’t stress about it too much, especially if that’s a large % of your games features in that one script.

5 Likes

Great, thanks! I’ll keep this in mind in the future.

2 Likes