载入中...
搜索中...
未找到
eve::IFramePacing类 参考abstract

Host-loop frame pacing controlled independently of presentation. 更多...

#include <FramePacing.h>

类 eve::IFramePacing 继承关系图:
eve::os::OS

Public 成员函数

virtual ~IFramePacing ()=default
 Releases IFramePacing resources.
 
virtual Result< void > setVerticalSyncCount (int count)=0
 Record the presentation VSync interval; zero means unsynchronized.
 
virtual int getVerticalSyncCount () const noexcept=0
 Return the current presentation VSync interval.
 
virtual Result< void > setTargetFramesPerSecond (int target)=0
 Set the software frame cap; -1 disables it.
 
virtual int getTargetFramesPerSecond () const noexcept=0
 Return the requested software frame cap, or -1 when disabled.
 
virtual void limitFrame ()=0
 Apply the configured software frame cap after presentation.
 

静态 Public 属性

static constexpr const char * capabilityName = "eve.frame-pacing"
 

详细描述

Host-loop frame pacing controlled independently of presentation.

The provider is owned by the host OS module and is available only while that module is loaded. Calls are synchronous on the game thread and invoke no callbacks or scripts.

在文件 FramePacing.h 第 14 行定义.

构造及析构函数说明

◆ ~IFramePacing()

virtual eve::IFramePacing::~IFramePacing ( )
virtualdefault

Releases IFramePacing resources.

成员函数说明

◆ getTargetFramesPerSecond()

virtual int eve::IFramePacing::getTargetFramesPerSecond ( ) const
pure virtualnoexcept

Return the requested software frame cap, or -1 when disabled.

在 eve::os::OS 内被实现.

◆ getVerticalSyncCount()

virtual int eve::IFramePacing::getVerticalSyncCount ( ) const
pure virtualnoexcept

Return the current presentation VSync interval.

在 eve::os::OS 内被实现.

◆ limitFrame()

virtual void eve::IFramePacing::limitFrame ( )
pure virtual

Apply the configured software frame cap after presentation.

在 eve::os::OS 内被实现.

◆ setTargetFramesPerSecond()

virtual Result< void > eve::IFramePacing::setTargetFramesPerSecond ( int  target)
pure virtual

Set the software frame cap; -1 disables it.

在 eve::os::OS 内被实现.

◆ setVerticalSyncCount()

virtual Result< void > eve::IFramePacing::setVerticalSyncCount ( int  count)
pure virtual

Record the presentation VSync interval; zero means unsynchronized.

在 eve::os::OS 内被实现.

类成员变量说明

◆ capabilityName

constexpr const char* eve::IFramePacing::capabilityName = "eve.frame-pacing"
staticconstexpr

在文件 FramePacing.h 第 16 行定义.


该类的文档由以下文件生成: