![]() |
2010-04-26
, 12:36
|
|
Posts: 1,012 |
Thanked: 817 times |
Joined on Jul 2007
@ France
|
#2
|
![]() |
2010-04-26
, 12:45
|
|
Posts: 186 |
Thanked: 192 times |
Joined on Jan 2010
@ Finland
|
#3
|
www.erikhk.net/tmp/cairotest.py
gobject.timeout_add(1,self.tick)
![]() |
2010-04-26
, 12:45
|
Posts: 15 |
Thanked: 10 times |
Joined on Apr 2010
|
#4
|
![]() |
2010-04-26
, 12:51
|
Posts: 15 |
Thanked: 10 times |
Joined on Apr 2010
|
#5
|
![]() |
2010-04-26
, 12:54
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#6
|
![]() |
2010-04-26
, 19:37
|
Posts: 1,208 |
Thanked: 1,028 times |
Joined on Oct 2007
|
#7
|
juise: sorry, didn't see your reply. I had that timeout value at something like 50 at first, but just tried to make it as low as possible to see if that was the problem. Could the pygtk/cairo thing be really fast if coded properly btw? Pygame can be really fast if I understand you correctly..?
![]() |
2010-04-26
, 21:12
|
Posts: 15 |
Thanked: 10 times |
Joined on Apr 2010
|
#8
|
In pygame case you are probably seeing that the ball moves 10 times faster with your computer that with N900. It's because the computer is 10 times faster. Simulation doesn't take in account the actual (real) time between simulation ticks and there isn't any limit for ticks/second.
![]() |
2010-04-27
, 11:32
|
Posts: 15 |
Thanked: 10 times |
Joined on Apr 2010
|
#9
|
![]() |
2010-04-27
, 11:50
|
Posts: 29 |
Thanked: 17 times |
Joined on Oct 2009
|
#10
|
I tried a pygame app aswell, which is also really slow, much much slower than on the computer; www.erikhk.net/tmp/fysik.py , try dragging a line on the screen and watch the ball get thrown.
Do you get the same results?