Expression surface:refresh() immediately updates the surface to ensure that the current drawings are visible.
surface:refresh()