|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Configuration options for a Swapchain. More...
#include <GREM/graphics/Swapchain.hpp>
Public Attributes | |
| uint32_t | maxBufferedFrameCount = 0 |
| Maximum number of additional swapchain frames to buffer and render while waiting for the oldest submitted frame to finish being rendered. | |
| bool | useVerticalSynchronization |
| Whether the swapchain should use vertical synchronization (VSync) or not. | |
Configuration options for a Swapchain.
| uint32_t grem::graphics::SwapchainOptions::maxBufferedFrameCount = 0 |
Maximum number of additional swapchain frames to buffer and render while waiting for the oldest submitted frame to finish being rendered.
Higher values may improve average framerate and frametime consistency at the cost of potentially higher input lag.
| bool grem::graphics::SwapchainOptions::useVerticalSynchronization |
Whether the swapchain should use vertical synchronization (VSync) or not.
VSync ensures that any frame submitted for presentation is delayed until the previously submitted frame has finished being presented. This eliminates the tearing artifacts that may otherwise occur due to swapping the front buffer in the middle of a screen refresh, at the cost of higher latency and potentially limiting the frame rate.