> Maybe the machine is busy waiting? What happens if you set framerate > to 1000?
[10-02-02 12:00:23.736] PROFILE: Profile Statistics (in us):
[10-02-02 12:00:23.736] PROFILE: Thread main
[10-02-02 12:00:23.736] PROFILE: Zone name Avg. time
[10-02-02 12:00:23.736] PROFILE: --------- ---------
[10-02-02 12:00:23.736] PROFILE: Player - Total frame time 9527
[10-02-02 12:00:23.736] PROFILE: Player - handleTimers 0
[10-02-02 12:00:23.736] PROFILE: Player - dispatch events 16
[10-02-02 12:00:23.736] PROFILE: Player - PreRender 0
[10-02-02 12:00:23.736] PROFILE: Player - render 9502
[10-02-02 12:00:23.736] PROFILE: Root node: render 3018
[10-02-02 12:00:23.736] PROFILE: pushClipRect 1120
[10-02-02 12:00:23.736] PROFILE: Words::render 654
[10-02-02 12:00:23.736] PROFILE: popClipRect 1074
[10-02-02 12:00:23.736] PROFILE: Render - wait 0
[10-02-02 12:00:23.736] PROFILE: Render - swap buffers 3295
[10-02-02 12:00:23.737] PROFILE: Player - onFrameEnd 0
[10-02-02 12:00:23.737] PROFILE:
[10-02-02 12:00:23.737] PROFILE: Framerate statistics:
[10-02-02 12:00:23.737] PROFILE: Total frames: 1519
[10-02-02 12:00:23.737] PROFILE: Total time: 15.5091 seconds
[10-02-02 12:00:23.737] PROFILE: Framerate achieved: 98.0069
[10-02-02 12:00:23.737] PROFILE: Frames too late: 1519
[10-02-02 12:00:23.737] PROFILE: Percent of time spent waiting: 35.7061
[10-02-02 12:00:23.737] PROFILE: Framerate goal was: 1000
CPU sits around 150% solidly. This is back on the Core2Duo machine at work. One
think I am noticing is that when I press escape using that script, the log
output stops (as above) but the avg window doesn't close. Same code on my
nVidia laptop closes the window and exits Python cleanly.
Script now is as follows:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from libavg import avg
Player = avg.Player.get()
Player.loadFile("text.avg")
Player.stopOnEscape(True)
Player.setFramerate(1000)
Player.play()
Cheers
Alex
This email carries a disclaimer, a copy of which may be read at
http://learning.longhill.org.uk/disclaimer<<winmail.dat>>
_______________________________________________ libavg-users mailing list [email protected] https://mail.datenhain.de/mailman/listinfo/libavg-users
