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

Method DecScreenRefreshInterval

samples/luxcoreui/luxcoreapp.cpp:132–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void LuxCoreApp::DecScreenRefreshInterval() {
133 const unsigned int screenRefreshInterval = config->ToProperties().Get("screen.refresh.interval").Get<unsigned int>();
134 if (screenRefreshInterval > 1000)
135 config->Parse(Properties().Set(Property("screen.refresh.interval")(Max(1000u, screenRefreshInterval - 1000))));
136 else if (screenRefreshInterval > 100)
137 config->Parse(Properties().Set(Property("screen.refresh.interval")(Max(50u, screenRefreshInterval - 50))));
138 else
139 config->Parse(Properties().Set(Property("screen.refresh.interval")(Max(10u, screenRefreshInterval - 5))));
140}
141
142void LuxCoreApp::CloseAllRenderConfigEditors() {
143 acceleratorWindow.Close();

Callers 1

GLFW_KeyCallBackMethod · 0.80

Calls 6

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

Tested by

no test coverage detected