载入中...
搜索中...
未找到
FramePacing.h
浏览该文件的文档.
Move-only, checked operation results for the common layer.
Host-loop frame pacing controlled independently of presentation.
Definition FramePacing.h:14
static constexpr const char * capabilityName
Definition FramePacing.h:16
virtual int getVerticalSyncCount() const noexcept=0
Return the current presentation VSync interval.
virtual Result< void > setVerticalSyncCount(int count)=0
Record the presentation VSync interval; zero means unsynchronized.
virtual int getTargetFramesPerSecond() const noexcept=0
Return the requested software frame cap, or -1 when disabled.
virtual Result< void > setTargetFramesPerSecond(int target)=0
Set the software frame cap; -1 disables it.
virtual void limitFrame()=0
Apply the configured software frame cap after presentation.