Timer script affecting CPU performance

hi,
i have a timer script which consumes 2% of CPU . what can do to improve the cpu peformance .should i change the script or any other thing?

thanks in advance

Help us non-mind-readers out (so we can help you):

How often does the script run?

What is it doing?

How is it doing it?

Is it doing anything every time that could be done once and cached?

Have you collected any timing information to see how long different parts of the script take? (Using System.nanoTime(), hopefully).

Off the top of my head, Iā€™d guess you need to change your script.

3 Likes