PGraphics.beginDraw(), PGraphics.endDraw() alternatives

im trying to find away to reduce the amount of beginDraw()/endDraw() calls that i need, specifically see Scoped beginDraw and endDraw