Hey.
On XP, the first two times I ran this, the last six tests failed (see
below)
The dozen times I have run it since,, (sometimes, for good measure, in
two windows simultaneously) it has completely passed.
So, much improved, with puzzling sporadicity.
The failures looked like:
F:\Documents and Settings\jhartley\Desktop\pyglet-read-only>f:
\Python26\Python.e
xe EVENT_LOOP.py
..FFFFFF
======================================================================
FAIL: test_d01_50 (__main__.EVENT_LOOP)
----------------------------------------------------------------------
Traceback (most recent call last):
File "EVENT_LOOP.py", line 65, in test_d01_50
self.t_scheduled(.01, 50)
File "EVENT_LOOP.py", line 39, in t_scheduled
pyglet.app.run()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\_
_init__.py", line 123, in run
event_loop.run()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\b
ase.py", line 134, in run
self._run_estimated()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\b
ase.py", line 162, in _run_estimated
timeout = self.idle()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\b
ase.py", line 262, in idle
redraw_all = self.clock.call_scheduled_functions(dt)
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\clock
.py", line 312, in call_scheduled_functions
item.func(ts - item.last_ts, *item.args, **item.kwargs)
File "EVENT_LOOP.py", line 28, in f
self.assertAlmostEqual(dt, interval, 2)
AssertionError: 0.015558960705899239 != 0.01 within 2 places
======================================================================
FAIL: test_d02_50 (__main__.EVENT_LOOP)
----------------------------------------------------------------------
Traceback (most recent call last):
File "EVENT_LOOP.py", line 62, in test_d02_50
self.t_scheduled(.02, 50)
File "EVENT_LOOP.py", line 39, in t_scheduled
pyglet.app.run()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\_
_init__.py", line 123, in run
event_loop.run()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\b
ase.py", line 134, in run
self._run_estimated()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\b
ase.py", line 162, in _run_estimated
timeout = self.idle()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\b
ase.py", line 262, in idle
redraw_all = self.clock.call_scheduled_functions(dt)
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\clock
.py", line 312, in call_scheduled_functions
item.func(ts - item.last_ts, *item.args, **item.kwargs)
File "EVENT_LOOP.py", line 28, in f
self.assertAlmostEqual(dt, interval, 2)
AssertionError: 0.03131710873868343 != 0.02 within 2 places
======================================================================
FAIL: test_d05_50 (__main__.EVENT_LOOP)
----------------------------------------------------------------------
Traceback (most recent call last):
File "EVENT_LOOP.py", line 56, in test_d05_50
self.t_scheduled(.05, 50)
File "EVENT_LOOP.py", line 39, in t_scheduled
pyglet.app.run()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\_
_init__.py", line 123, in run
event_loop.run()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\b
ase.py", line 134, in run
self._run_estimated()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\b
ase.py", line 162, in _run_estimated
timeout = self.idle()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\b
ase.py", line 262, in idle
redraw_all = self.clock.call_scheduled_functions(dt)
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\clock
.py", line 312, in call_scheduled_functions
item.func(ts - item.last_ts, *item.args, **item.kwargs)
File "EVENT_LOOP.py", line 28, in f
self.assertAlmostEqual(dt, interval, 2)
AssertionError: 0.056177251578063192 != 0.050000000000000003 within 2
places
======================================================================
FAIL: test_d05_50_d03 (__main__.EVENT_LOOP)
----------------------------------------------------------------------
Traceback (most recent call last):
File "EVENT_LOOP.py", line 59, in test_d05_50_d03
self.t_scheduled(.05, 50, 0.03)
File "EVENT_LOOP.py", line 39, in t_scheduled
pyglet.app.run()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\_
_init__.py", line 123, in run
event_loop.run()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\b
ase.py", line 134, in run
self._run_estimated()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\b
ase.py", line 162, in _run_estimated
timeout = self.idle()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\b
ase.py", line 262, in idle
redraw_all = self.clock.call_scheduled_functions(dt)
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\clock
.py", line 312, in call_scheduled_functions
item.func(ts - item.last_ts, *item.args, **item.kwargs)
File "EVENT_LOOP.py", line 28, in f
self.assertAlmostEqual(dt, interval, 2)
AssertionError: 0.059339105947824322 != 0.050000000000000003 within 2
places
======================================================================
FAIL: test_d1_50 (__main__.EVENT_LOOP)
----------------------------------------------------------------------
Traceback (most recent call last):
File "EVENT_LOOP.py", line 50, in test_d1_50
self.t_scheduled(.1, 50)
File "EVENT_LOOP.py", line 39, in t_scheduled
pyglet.app.run()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\_
_init__.py", line 123, in run
event_loop.run()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\b
ase.py", line 134, in run
self._run_estimated()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\b
ase.py", line 162, in _run_estimated
timeout = self.idle()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\b
ase.py", line 262, in idle
redraw_all = self.clock.call_scheduled_functions(dt)
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\clock
.py", line 312, in call_scheduled_functions
item.func(ts - item.last_ts, *item.args, **item.kwargs)
File "EVENT_LOOP.py", line 28, in f
self.assertAlmostEqual(dt, interval, 2)
AssertionError: 0.10944854723156539 != 0.10000000000000001 within 2
places
======================================================================
FAIL: test_d1_50_d05 (__main__.EVENT_LOOP)
----------------------------------------------------------------------
Traceback (most recent call last):
File "EVENT_LOOP.py", line 53, in test_d1_50_d05
self.t_scheduled(.1, 50, 0.05)
File "EVENT_LOOP.py", line 39, in t_scheduled
pyglet.app.run()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\_
_init__.py", line 123, in run
event_loop.run()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\b
ase.py", line 134, in run
self._run_estimated()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\b
ase.py", line 162, in _run_estimated
timeout = self.idle()
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\app\b
ase.py", line 262, in idle
redraw_all = self.clock.call_scheduled_functions(dt)
File "f:\Documents and Settings\jhartley\Desktop\pyglet-read-only
\pyglet\clock
.py", line 312, in call_scheduled_functions
item.func(ts - item.last_ts, *item.args, **item.kwargs)
File "EVENT_LOOP.py", line 28, in f
self.assertAlmostEqual(dt, interval, 2)
AssertionError: 0.10899402018971927 != 0.10000000000000001 within 2
places
----------------------------------------------------------------------
Ran 8 tests in 41.625s
FAILED (failures=6)
On Nov 15, 12:32 am, "Alex Holkner" <[EMAIL PROTECTED]> wrote:
> Thanks to everyone who provided data for the recent timing test on
> Windows. I've built an improved model of timing that I'm hoping will
> be able to compensate for the large errors some users are reporting.
>
> Please take a couple of minutes to test this improvement, especially
> if your machine failed any of the tests previously. To run the test,
> update your SVN working copy of pyglet trunk to r2373 or later
> (instructions for checking it out are
> athttp://code.google.com/p/pyglet/source/checkout), and run
>
> python tests/app/EVENT_LOOP.py
>
> You may need to copy that file into your working directory or modify
> the PYTHONPATH environment variable to have it pick up the correct
> version of pyglet (not your installed copy).
>
> This time the test case will take up to 1 minute to run. Once again,
> please be careful to close any background applications first, and make
> sure Windows isn't performing any updates or other disk activity.
>
> Thanks again
> Alex.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---