simple attiny 85 led dimmer with osc. pics

I dont have a schematic, it pretty simple, just a. Attiny 85 with necessary caps driving a irf 540 mosfet
most interesting part is how it drives the mosfet, one osc, pic is with a 1k gate resistor the second a 220, now while in my calculations the heat dissapated at full load would be fine either way, you can tell the better way which I took, (also gives a brighter look)
I only ran into this when increasing the pwm speed from 200hz to 16khz(to elimanate flickering), I noticed it wasn’t even turning fully on at low levels