Computer Science Canada

display.update(rect) vs. display.flip()

Author:  shaon [ Mon Jan 14, 2008 4:41 pm ]
Post subject:  display.update(rect) vs. display.flip()

if I have to update 8 separate areas on the screen that don't overlap, would it be better to update those areas individually using display.update(rect) or just do it all in one line using display.flip() ?

Author:  McKenzie [ Mon Jan 14, 2008 5:13 pm ]
Post subject:  Re: display.update(rect) vs. display.flip()

Actually you would use display.update(rectangle_list). You pass in a list of all the rectangles you need to update.


: