MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / IncScreenRefreshInterval

Method IncScreenRefreshInterval

samples/luxcoreui/luxcoreapp.cpp:122–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void LuxCoreApp::IncScreenRefreshInterval() {
123 const unsigned int screenRefreshInterval = config->ToProperties().Get("screen.refresh.interval").Get<unsigned int>();
124 if (screenRefreshInterval >= 1000)
125 config->Parse(Properties().Set(Property("screen.refresh.interval")(screenRefreshInterval + 1000)));
126 else if (screenRefreshInterval >= 100)
127 config->Parse(Properties().Set(Property("screen.refresh.interval")(screenRefreshInterval + 50)));
128 else
129 config->Parse(Properties().Set(Property("screen.refresh.interval")(screenRefreshInterval + 5)));
130}
131
132void LuxCoreApp::DecScreenRefreshInterval() {
133 const unsigned int screenRefreshInterval = config->ToProperties().Get("screen.refresh.interval").Get<unsigned int>();

Callers 1

GLFW_KeyCallBackMethod · 0.80

Calls 5

Get<unsigned int>Method · 0.80
GetMethod · 0.80
SetMethod · 0.80
ToPropertiesMethod · 0.45
ParseMethod · 0.45

Tested by

no test coverage detected