I would like to write a 3D program on XCB and I would like to put my "render_frame" function into the frame throttle callback. However, I don't know what is the frame throttle callback in XCB. Is there any equivalent of “WM_PAINT”(Win32) / “wl_surface::frame”(wayland) in XCB?
Asked
Active
Viewed 85 times
1 Answers
0
You might be looking for the Present extension. Google just gave me https://cgit.freedesktop.org/xorg/proto/presentproto/tree/presentproto.txt, but this describes version 1.0 of the extension. The current version is 1.2, so somewhere there should be a newer documentation. I do not know what the additions since version 1.0 are and whether you need them.

Uli Schlachter
- 9,337
- 1
- 23
- 39
-
I don't know what is the frame throttle callback in XCB – Hanetaka Chou Mar 21 '20 at 08:45
-
Is there any equivalent of “WM_PAINT”(Win32) / “wl_surface::frame”(wayland) in XCB? – Hanetaka Chou Mar 21 '20 at 08:47
-
Yes, the Present extension provides events for that. – Uli Schlachter Mar 21 '20 at 08:50
-
Well, and since I have not said so explicitly yet: Core X11 does not have anything like that. – Uli Schlachter Mar 21 '20 at 08:50
-
How to use that extension by libXCB? – Hanetaka Chou Mar 21 '20 at 11:04