kopia lustrzana https://gitlab.com/eliggett/wfview
Cut log window polling rate in half for lower CPU. 100ms is plenty fast.
rodzic
1b6cff85f4
commit
73b9c88e5e
|
@ -6969,7 +6969,8 @@ void wfmain::initLogging()
|
|||
// Set handler
|
||||
qInstallMessageHandler(messageHandler);
|
||||
|
||||
logCheckingTimer.setInterval(50);
|
||||
// Interval timer for log window updates:
|
||||
logCheckingTimer.setInterval(100);
|
||||
connect(&logCheckingTimer, SIGNAL(timeout()), this, SLOT(logCheck()));
|
||||
logCheckingTimer.start();
|
||||
}
|
||||
|
@ -6997,8 +6998,6 @@ void wfmain::messageHandler(QtMsgType type, const QMessageLogContext& context, c
|
|||
{
|
||||
// Open stream file writes
|
||||
|
||||
// TODO: Fix this parameter:
|
||||
|
||||
if (type == QtDebugMsg && !debugModeLogging)
|
||||
{
|
||||
return;
|
||||
|
@ -7046,7 +7045,5 @@ void wfmain::messageHandler(QtMsgType type, const QMessageLogContext& context, c
|
|||
logTextMutex.lock();
|
||||
logStringBuffer.push_back(text);
|
||||
logTextMutex.unlock();
|
||||
//logStringBuffer[logStringBufferPosition%logStringBufferSize] = text;
|
||||
//logStringBufferPosition++;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue