Host-loop frame pacing controlled independently of presentation. 更多...
#include <FramePacing.h>
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()
|
virtualdefault |
Releases IFramePacing resources.
成员函数说明
◆ getTargetFramesPerSecond()
|
pure virtualnoexcept |
Return the requested software frame cap, or -1 when disabled.
在 eve::os::OS 内被实现.
◆ getVerticalSyncCount()
|
pure virtualnoexcept |
Return the current presentation VSync interval.
在 eve::os::OS 内被实现.
◆ limitFrame()
|
pure virtual |
Apply the configured software frame cap after presentation.
在 eve::os::OS 内被实现.
◆ setTargetFramesPerSecond()
|
pure virtual |
Set the software frame cap; -1 disables it.
在 eve::os::OS 内被实现.
◆ setVerticalSyncCount()
|
pure virtual |
Record the presentation VSync interval; zero means unsynchronized.
在 eve::os::OS 内被实现.
类成员变量说明
◆ capabilityName
|
staticconstexpr |
在文件 FramePacing.h 第 16 行定义.
该类的文档由以下文件生成:
- src/engine/common/FramePacing.h