GLUT timedCallback fires twice
The Graphics.UI.GLUT.Callbacks.Global.addTimerCallback doesn't function as expected when called from a timed callback.
Expected Behavior: When a timed callback is registered, it fires at the specified interval.
Observed Behavior: If the timed callback is registered from a timed callback, the callback fires immediately every other time. The first callback is appropriately delayed and the second fires immediately.
Impact: 50% of callbacks fire prematurely.
Workaround: Check the time between callbacks. If the callback occurs within a certain amount of time, do no work and register another callback. Repeat until a reasonable amount of time has passed.
System: Mac OS X 10.4.10, Macbook Pro 2.33 GHz Core 2 Duo, 2 GB of RAM, ATI X1600
Trac metadata
Trac field | Value |
---|---|
Version | 6.6.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | libraries (other) |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |