Loading...
Searching...
No Matches
score::gfx::KmsOutputSettings Struct Reference

Public Attributes

std::string device
 Card node. Empty picks the first one with a connected connector.
 
std::uint32_t connectorId {0}
 0 picks the first connected connector.
 
std::uint32_t width {0}
 0x0 picks the connector's preferred mode.
 
std::uint32_t height {0}
 
double refreshRate {0.0}
 
bool tearing {false}
 
std::size_t bufferCount {3}
 
bool verbose {true}
 

Member Data Documentation

◆ bufferCount

std::size_t score::gfx::KmsOutputSettings::bufferCount {3}

Scanout buffers. Three lets one be scanned out, one be queued and one be rendered into; two makes the renderer wait on every flip.

◆ tearing

bool score::gfx::KmsOutputSettings::tearing {false}

Flip at the next scanline instead of the next vblank: lowest latency, and it tears. Off by default – tearing is a choice, not a default.

◆ verbose

bool score::gfx::KmsOutputSettings::verbose {true}

Log the device, connector, mode and the modifier actually negotiated. On by default: a silent fallback to a copy is invisible otherwise.


The documentation for this struct was generated from the following file: