Documentation
¶
Overview ¶
Package performance owns the versioned cartridge contract for adaptive presentation profiles. It intentionally stays independent of renderer state.
Index ¶
Constants ¶
View Source
const ( SectionName = "karty.performance.v1" MaxConfig = 64 * 1024 )
View Source
const BinaryVersion = uint16(2)
Variables ¶
View Source
var ErrConfig = errors.New("game performance profile configuration is invalid")
Functions ¶
Types ¶
type Config ¶
type Config struct {
TargetFPS float64 `toml:"target_fps"`
DefaultProfile string `toml:"default_profile"`
Profiles []Profile `toml:"profiles"`
}
Config uses the binary cartridge contract in SectionName. Profiles are ordered from highest to lowest quality; width bounds are inclusive window pixels.
Click to show internal directories.
Click to hide internal directories.