andy1
05-06-2002, 08:00 AM
Hi,
in my application I have two rendering contexts. One context is used for normal rendering, and the other context is used for dynamically creating textures in a pbuffer.
Now I would like to use a timer to switch from the pbuffer context to the normal rendering context at constant time intervals, in order to achieve a constant frame rate.
Unfortunately, using the linux system timer ( setitimer(ITIMER_REAL, ...) ) causes segmentation faults or even total system crashes. However, there are no crashes when I block the timer while OpenGL functions are being executed. In the callback function invoked by the timer's SIGALRM signal, other OpenGL functions are called - so might the reason for these crashes be that OpenGL functions are not reentrant?
Any ideas are welcome!
[This message has been edited by andy1 (edited 05-06-2002).]
in my application I have two rendering contexts. One context is used for normal rendering, and the other context is used for dynamically creating textures in a pbuffer.
Now I would like to use a timer to switch from the pbuffer context to the normal rendering context at constant time intervals, in order to achieve a constant frame rate.
Unfortunately, using the linux system timer ( setitimer(ITIMER_REAL, ...) ) causes segmentation faults or even total system crashes. However, there are no crashes when I block the timer while OpenGL functions are being executed. In the callback function invoked by the timer's SIGALRM signal, other OpenGL functions are called - so might the reason for these crashes be that OpenGL functions are not reentrant?
Any ideas are welcome!
[This message has been edited by andy1 (edited 05-06-2002).]