You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f393670
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: GPU/GPUTracking/Definitions/GPUSettingsListDisplay.h
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,7 @@ AddOption(consoleVertical, float, 0.5f, "", 0, "Fraction of the window height co
122
122
AddOption(consoleHistorySize, uint32_t, 1000000, "", 0, "Number of console lines kept, the history is shortened to this when it reaches twice the size")
123
123
AddOption(setInfoTime, float, 5.0f, "", 0, "Time in seconds an info message (SetInfo) is shown fully opaque")
124
124
AddOption(setInfoTransition, float, 1.0f, "", 0, "Time in seconds an info message fades out after setInfoTime")
125
+
AddOption(consolePrintToTerminal, bool, false, "", 0, "Also write the replies of console commands to the terminal")
voidHandleKey(uint8_t key, bool external = false); // external: from the Qt GUI or the console, not typed into the event display console
65
+
voidHandleKey(uint8_t key, bool external = false, bool bypassConsole = false); // external: from the Qt GUI or the console, not typed into the event display console; bypassConsole: handled as key also while the console is shown (injectKey)
66
66
int32_tDrawGLScene(bool suspended = false);
67
-
voidHandleExternalGUIKey(int32_t key);
67
+
voidHandleExternalGUIKey(int32_t key, bool bypassConsole = false); // key >= 256: special key with SHIFT
auto autoType = [](const std::string& text, bool plain) -> consoleArg { // int64_t for [+-]digits, double for [+-]digits with one '.', string otherwise or if plain text
189
+
auto autoType = [](const std::string& text, bool plain) -> consoleArg { // int64_t for [+-]digits, double for other decimal numbers (also with exponent, as saveSettings writes them), string otherwise or if plain text
constdouble time = std::chrono::duration<double>(std::chrono::steady_clock::now() - mBenchmarkStart).count();
268
+
consolePrint("benchmark: %u frames in %.3f s, %.2f fps, %.3f ms per frame", mBenchmarkFrames, time, mBenchmarkFrames / time, time * 1000. / mBenchmarkFrames);
269
+
}
270
+
}
271
+
if (mWaitCondition && mWaitCondition()) {
272
+
mWaitCondition = nullptr;
273
+
}
274
+
constuint32_t outerDepth = mScriptDepth;
275
+
for (uint32_t n = 0; n < 100000 && mScriptQueue.size() && !mWaitFrames && !mBenchmarkLeft && !mWaitCondition && std::chrono::steady_clock::now() >= mWaitUntil; n++) { // Limit per call: a script must not block the display
276
+
ScriptLine line = std::move(mScriptQueue.front());
0 commit comments