[Tutor] which is faster
Steven D'Aprano
steve at pearwood.info
Tue Jun 10 13:21:59 CEST 2014
On Tue, Jun 10, 2014 at 12:12:56PM +0530, diliup gabadamudalige wrote:
> In Pygame Which is faster?
>
> 1. filling the screen with a colour
> or
> 2. blitting an image to screen
Why don't you time it and find out? Don't forget to come back and report
what you discover, I'm sure I'm not the only one who would like to know
the answer to the question.
http://pymotw.com/2/timeit/
More information here:
https://docs.python.org/2/library/timeit.html
--
Steven
More information about the Tutor
mailing list