[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

RE:[pygame] Difference between flip and update?



"short answer: update() is usually faster than flip()."

==> I do not agree. It depends on the area of the surface to be updated. In most cases, update() is really needed only if one needs to update only a few fractions of the screen each frame. Moreover, even in that case, flip() could be sufficient ; however, sometimes performance is critical for other reasons (assume we make a lot of computations each frame for some reasons), and it that case the use of update is really relevant if not all the screen needs to be updated.
________________________________________
De : owner-pygame-users@xxxxxxxx [owner-pygame-users@xxxxxxxx] de la part de tom arnall [kloro2006@xxxxxxxxx]
Envoyé : mercredi 26 août 2015 22:52
À : pygame-users@xxxxxxxx
Objet : Re: [pygame] Difference between flip and update?

short answer: update() is usually faster than flip().


On 8/26/15, Bob Irving <bobirv@xxxxxxxxx> wrote:
> What is the difference? Is there a reason to use one over the other?
>
> Thanks!
> Bob Irving
> Porter-Gaud School
> Charleston, SC
>
> --
> Twitter: @birv2
> www.bob-irving.com
> http://www.scoop.it/t/on-the-digital-frontier
>


--
.....
“Once you can accept the universe as matter expanding into nothing
that is something, wearing stripes with plaid comes easy.” Albert
Einstein

.....
“I have no special talents, only a passionate and stubborn curiosity.”
Albert Einstein