Metronome help!!!!!!!!!!!

Ok I’m using 4.2 and when I test the metronome it works fine. When I record it skips beats! As in 1 2 3 4 6 8 etc. The little bouncy ball ‘bounces’ correctly but the audio just goes away!

I had this problem before and someone said set the program to the highest priority which worked for a little while but not now.

Help!!!