[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pygame] Debug printouts - faster to screen or file?
Pete Shinners wrote:
> i assume sending this to a file would be faster, since it wouldn't
> require any graphics output to the screen. lots of printing statements
> do have an impact on performance. i'm how much is gained by sending it
> to a file instead.
I think the screen will be faster. The screen is still memory even
though it's a few layers out from the CPU. The slowest memory is still
a few hundred times faster than the fastest hard drive. Caching will
mitigate this somewhat but if you've got a lot of prints eventually
they'll have to be physically written to disk and then your program will
stop dead for a second.
Hmmm, maybe setup a RAMdrive? Best of both worlds...
--
======================================================================
Paul Sidorsky Calgary, Canada
paulsid@shaw.ca http://members.shaw.ca/paulsid/
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org