bw
2014-06-28 05:35:50 UTC
Howdy,
Hoping some folks can try this out. I have no idea why it is happening.
Not even a theory. Could be anything from drivers to the Python or SDL
build. Here's the scoop...
The environment:
- i5 desktop computer (not a virtual machine)
- Ubuntu 13.04 x86_64
- Python 2.7
- pygame 1.9.1
The program blits a checkerboard background using only two images, and
pans the images diagonally back and forth forever. The clock is not
throttled.
The problem usually occurs anywhere from 3 to 120 seconds after start.
During the normal behavior, I'm getting about 320 fps with occasional
instantaneous spikes to 500+ fps. (I don't know if the spikes are
normal. They do cause visible glitches.)
During the problem behavior the fps spikes permanently to about 580 fps
and stays pegged. Who would complain about sustained 580 fps, ay? :)
Well, then when pygame quits, the program freezes and the window remains
open with the checker pattern intact. SIGTERM (15) does not kill the
program. SIGKILL (9) does.
This issue does not happen in Windows 7. And it does not happen if I
throttle the clock enough to lower the max fps.
I attached the small program. I'm curious if anyone can run it and
reproduce the problem. I plan on upgrading Ubuntu soon, when I am ready
to risk it: maybe the problem will go away. I'll post the outcome--but
I've been too busy to risk the upgrade, so don't hold yer breath. =)
Thanks.
Gumm
Hoping some folks can try this out. I have no idea why it is happening.
Not even a theory. Could be anything from drivers to the Python or SDL
build. Here's the scoop...
The environment:
- i5 desktop computer (not a virtual machine)
- Ubuntu 13.04 x86_64
- Python 2.7
- pygame 1.9.1
The program blits a checkerboard background using only two images, and
pans the images diagonally back and forth forever. The clock is not
throttled.
The problem usually occurs anywhere from 3 to 120 seconds after start.
During the normal behavior, I'm getting about 320 fps with occasional
instantaneous spikes to 500+ fps. (I don't know if the spikes are
normal. They do cause visible glitches.)
During the problem behavior the fps spikes permanently to about 580 fps
and stays pegged. Who would complain about sustained 580 fps, ay? :)
Well, then when pygame quits, the program freezes and the window remains
open with the checker pattern intact. SIGTERM (15) does not kill the
program. SIGKILL (9) does.
This issue does not happen in Windows 7. And it does not happen if I
throttle the clock enough to lower the max fps.
I attached the small program. I'm curious if anyone can run it and
reproduce the problem. I plan on upgrading Ubuntu soon, when I am ready
to risk it: maybe the problem will go away. I'll post the outcome--but
I've been too busy to risk the upgrade, so don't hold yer breath. =)
Thanks.
Gumm