Sign in to follow this  

Porting a window to X11 - timers and send events

This topic is 4075 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

This topic is 4075 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this