You should be at the gate around 1h earlier taking into account they may be boarding before the aircraft arrives (sometimes happens with Ryanair).
But you should be there before boarding closes.
I hope I've answered your question.