Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed of update varies with machine #1

Open
kiorpesc opened this issue Dec 5, 2012 · 4 comments
Open

Speed of update varies with machine #1

kiorpesc opened this issue Dec 5, 2012 · 4 comments
Assignees

Comments

@kiorpesc
Copy link
Member

kiorpesc commented Dec 5, 2012

The ball seems two or three times faster on my laptop than it did in the lab. Is there a way to set the update rate to a fixed time?

@kiorpesc
Copy link
Member Author

kiorpesc commented Dec 5, 2012

I see that there's a "schedule interval" line... but it doesn't seem to guarantee a fixed speed.

@resba
Copy link
Member

resba commented Dec 5, 2012

You work on school stuff at home? Neeeerrrrrddddd <3

Anyway, That's interesting. We'll need to investigate that further.

@ghost ghost assigned resba and kiorpesc Dec 5, 2012
@resba
Copy link
Member

resba commented Dec 6, 2012

The update function is called every 0.01677 seconds, as stated by the Clock.schedule_interval line. What this probably means is that the lab computers are spending more time on processing frames than your laptop. Try adding a label to pong.kv that prints out Clock.frametime (should be formatted str(Clock.frametime) )

We'll check this out further in lab tomorrow I guess.

@resba
Copy link
Member

resba commented Dec 6, 2012

Kivy Documentation for the Clock Object: http://kivy.org/docs/api-kivy.clock.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants