【问题标题】:Is there any frame throttle callback in XCB?XCB 中是否有任何帧限制回调?
【发布时间】:2020-03-19 06:34:45
【问题描述】:

我想在 XCB 上编写一个 3D 程序,我想将我的“render_frame”函数放入帧节流回调中。但是,我不知道 XCB 中的帧限制回调是什么。 XCB 中是否有“WM_PAINT”(Win32) / “wl_surface::frame”(wayland) 等价物?

【问题讨论】:

    标签: x11 xcb wayland


    【解决方案1】:

    您可能正在寻找 Present 扩展程序。谷歌刚刚给了我https://cgit.freedesktop.org/xorg/proto/presentproto/tree/presentproto.txt,但这描述了扩展的 1.0 版本。当前版本是 1.2,所以某处应该有更新的文档。我不知道自 1.0 版以来的新增功能是什么以及您是否需要它们。

    【讨论】:

    • 不知道XCB中的帧限制回调是什么
    • XCB 中是否有“WM_PAINT”(Win32) / “wl_surface::frame”(wayland) 等价物?
    • 是的,Present 扩展为此提供了事件。
    • 好吧,既然我还没有这么明确地说:Core X11 没有这样的东西。
    • 如何通过 libXCB 使用该扩展?
    猜你喜欢
    • 2018-12-08
    • 2021-06-25
    • 2011-10-04
    • 2021-11-26
    • 2015-11-09
    • 2016-11-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多