add clearScreen flag to RenderBegin