Counter going from fast to slow

I have a sketch whereby I use a counter to time certain effects (I'm using different LED lighting patterns) through the use of certain functions. In the sketch I define a counter and then I have the counter increase by 1 (counter ++) every time the sketch loops. With one of the functions below - bpm , the counter scrolls as expected, but with the other - "ebright", it progresses much slower - any idea why?

void ebright (){
for(int i = 0; i < NUM_LEDS; i++ ){
  leds[i] = CHSV(m, 255, 255);
FastLED.show();
}  
m=m+8;
if (m>255) {
  m=1;

}
}

void bpm()
{

  uint8_t BeatsPerMinute = 62;
  CRGBPalette16 palette = PartyColors_p;
  uint8_t beat = beatsin8( BeatsPerMinute, 64, 255);
  for( int i = 0; i < NUM_LEDS; i++) { 
    leds[i] = ColorFromPalette(palette, gHue+(i*2), beat-gHue+(i*10));
  }
}

The problem is in the code you didn't post.

MorganS:
The problem is in the code you didn't post.

Ummm - ok, which code - like I said theirs just a simple counter in the loop - when one of those functions runs the counter moves fast, with the other the counter moves slow - so there is something in the "ebright" function that is causing it to run slowly, just trying to figure out what that is.

@MorganS is telling you to post your complete sketch.

Note that ebright() contains a call to FastLED.show() for every iteration of the for() loop which will take some time to clock out your data, especially if NUM_LEDS is large.

Thanks - there are 160 leds.