Thread
:
Is python really this slow?
View Single Post
juise-
2010-04-26 , 12:45
Posts: 186 | Thanked: 192 times | Joined on Jan 2010 @ Finland
#
3
Originally Posted by
ErikHK
www.erikhk.net/tmp/cairotest.py
Code:
gobject.timeout_add(1,self.tick)
I didn't look through your code properly or try it, but it seems that above line will make your code to try to do the whole drawing thing 1000 times in a second. It's highly unlikely that this is what you wanted.
Edit: was pointed out above already.
Generally, when using GUI libraries, you'll only want to invalidate areas that have actually changed.
Quote & Reply
|
juise-
View Public Profile
Send a private message to juise-
Visit juise-'s homepage!
Find all posts by juise-