【发布时间】:2020-03-19 06:34:45
【问题描述】:
我想在 XCB 上编写一个 3D 程序,我想将我的“render_frame”函数放入帧节流回调中。但是,我不知道 XCB 中的帧限制回调是什么。 XCB 中是否有“WM_PAINT”(Win32) / “wl_surface::frame”(wayland) 等价物?
【问题讨论】:
我想在 XCB 上编写一个 3D 程序,我想将我的“render_frame”函数放入帧节流回调中。但是,我不知道 XCB 中的帧限制回调是什么。 XCB 中是否有“WM_PAINT”(Win32) / “wl_surface::frame”(wayland) 等价物?
【问题讨论】:
您可能正在寻找 Present 扩展程序。谷歌刚刚给了我https://cgit.freedesktop.org/xorg/proto/presentproto/tree/presentproto.txt,但这描述了扩展的 1.0 版本。当前版本是 1.2,所以某处应该有更新的文档。我不知道自 1.0 版以来的新增功能是什么以及您是否需要它们。
【讨论】: