Porting a window to X11 - timers and send events

Started by
0 comments, last by spellmansamnesty 17 years, 6 months ago
Hi, I have recently begun porting a window written in Win32 API to X11. Under win32, I set up a conditional timer to send a window redraw event for a maximum framerate. This way, the redraw event gets handled like any other window or UI event. Can the equivalent be acheived in X11? A separate drawing thread works but i'd like it sync'ed with the rest of the UI.
Advertisement
Following up, I created my own timer class and reverted the rendering thread to single threaded. I'm giving up on the idea I could send a draw event through a custom threaded timer class as I did in win32. Turns out that sending custom xevents to the xserver is a good way to hose X11 and have to hard reboot. who knew! The single threaded way seems to be easier and is o.k. on timing.

This topic is closed to new replies.

Advertisement