today I encountered a very odd situation. I am on Windows Vista and usin=
Python 2.5.2. Here's a code snippet to illustrate my problem:
# uncomment the next line to trigger the problem
for i in range(0,100):
With the line commented time.time() returns a changing value which is wh=
I expect. However, when I uncomment it and create a Direct3D9 Device =
 it keeps printing the very same number over and over! In my proje=
I am using twisted which uses time.time() to schedule all calls. Since =
time.time() is completely screwed the whole application breaks.
I took a look at , but I can't see any obivous way how this all =
interacts. Specifically I am not sure which API time.time() uses =
internally (timeGetTime maybe?). Knowing this could probably help me deb=
more. I feel like time.time() should not break (unless the vid card =
driver/directx has a major bug). Any idea what might be happening here?
Replacing time.time() with time.clock() in twisted.python.runtime makes =
the problem disappear. I guess because it uses QueryPerformanceCounter.
Thanks for your time,