display.update(rect) vs. display.flip()
Author |
Message |
shaon
|
Posted: 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() ? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
McKenzie
![](http://www.wizards.com/global/images/swtcg_article_27_pic3_en.gif)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
|
|