PresentationTime QML Type
프레임이 화면에 표시되는 타이밍을 추적할 수 있습니다. 더 보기...
Import Statement: | import QtWayland.Compositor.PresentationTime |
Since: | Qt 6.3 |
In C++: | QWaylandPresentationTime |
메서드
- void sendFeedback(Window window, int sequence, int sec, int nsec)
자세한 설명
PresentationTime 확장은 서페이스의 렌더링 타이밍을 추적하는 방법을 제공합니다. 클라이언트는 서페이스와 관련된 피드백을 요청하면 컴포저는 서페이스가 화면에 표시되는 시간과 함께 피드백에 대한 이벤트를 전송할 수 있습니다.
프레젠테이션 시간은 Wayland wp_presentation
인터페이스에 해당합니다.
컴포저에서 프레젠테이션 시간 확장 기능을 제공하려면 프레젠테이션 시간 구성 요소의 인스턴스를 생성하고 컴포저에서 지원하는 확장 목록에 추가합니다:
그런 다음 서페이스가 화면에 표시될 때 sendFeedback()를 호출합니다. 일반적으로 타이밍은 drm 페이지 넘기기 이벤트에서 얻을 수 있습니다.
import QtWayland.Compositor.PresentationTime WaylandCompositor { PresentationTime { id: presentationTime } }
메서드 문서
window 를 사용하여 프레임이 화면에 표시되었음을 알리는 인터페이스입니다. 플랫폼에서 DRM 이벤트를 지원하는 경우 page_flip_handler
이 적절한 전송 타이밍입니다. sequence 은 새로 고침 카운터입니다. sec 과 nsec 은 프레젠테이션 타임스탬프의 초와 나노초 부분을 각각 보관합니다.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.