If your compressor goes to start, and suddenly the lights in the room dim or flicker, that’s a signal that your compressor has a problem.
It may be that there is a pump mechanical issue loading down the crank, and the motor cannot start easily.
It may also be that the unloader valve is failing, and the compressor motor is trying to start against a load of air trapped over the piston.
The most likely scenario though is that the start capacitor is failing. If you browse on line for videos about how to test your compressor motor start capacitor, you will find many.
If your room lights are dimming when the compressor tries to start, check your compressor motor start capacitor.