gpt4 book ai didi

c++ - QML渲染引擎: frame refresh event

转载 作者:行者123 更新时间:2023-12-02 04:53:53 26 4
gpt4 key购买 nike

Performance Considerations And Suggestions文章说:

As an application developer, you must strive to allow the rendering engine to achieve a consistent 60 frames-per-second refresh rate. 60 FPS means that there is approximately 16 milliseconds between each frame in which processing can be done, which includes the processing required to upload the draw primitives to the graphics hardware.

是否有事件或信号或任何形式的回调来使代码在刷新时被调用?

目标是消除在 UI 线程槽中处理来自渲染线程的信号的需要。如果新数据到达,那么它将被绘制或标记为下一次刷新绘制(使用 update() 调用)。

最佳答案

QQuickWindow 有一堆信号用于同步 - beforeRendering()afterRendering()beforeSynchronizing() afterSynchronizing()frameSwapped()。任君选择。

关于c++ - QML渲染引擎: frame refresh event,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43097090/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com