MCPcopy Create free account
hub / github.com/clementgallet/libTAS / updateUIFrequent

Method updateUIFrequent

src/program/ui/MainWindow.cpp:940–966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

938}
939
940void MainWindow::updateUIFrequent()
941{
942 /* Only update every 50 ms */
943 int64_t elapsed = updateTimer->elapsed();
944 if (elapsed < 50) {
945 /* Call this function on timeout, if not already done */
946 if (!callTimer->isActive()) {
947 callTimer->start(50 - elapsed);
948 }
949 return;
950 }
951
952 updateTimer->start();
953
954 updateFrequentRuntimeDisplay();
955 windowManager->updateFrequentWindowViews();
956
957 /* Detect if the debugger was detached from the game and allow user to attach again */
958 if (context->attach_gdb && debugger_pid) {
959 int ret = waitpid(debugger_pid, nullptr, WNOHANG);
960 if (ret == debugger_pid) {
961 context->attach_gdb = false;
962 debugger_pid = 0;
963 launchGdbButton->setEnabled(true);
964 }
965 }
966}
967
968void MainWindow::updateFrequentRuntimeDisplay()
969{

Callers

nothing calls this directly

Calls 2

startMethod · 0.45

Tested by

no test coverage detected