Normal computer today are running with about 3 GHz and are able to process around 78.440 64bit instructions per second. The clamp function uses 2 comparisons. This is A. not optimizable. (Unless you assume, that a score of about int.MaxValue is not reachable. Then you can replace it with Mathf.Min) and B. does not affect the performence on any level. Why are you woring about this code? If you want to see the performance impact, use the profiler. But I doubt, that anything visible will appear.