- try to get threaded client working without lag

This commit is contained in:
Mark Vejvoda
2013-03-02 00:53:55 +00:00
parent c49962c644
commit 6603e08c96
3 changed files with 29 additions and 5 deletions

View File

@@ -946,6 +946,14 @@ void ClientInterface::updateFrame(int *checkFrame) {
}
}
uint64 ClientInterface::getCachedLastPendingFrameCount() {
MutexSafeWrapper safeMutex(networkCommandListThreadAccessor,CODE_AT_LINE);
uint64 result = cachedLastPendingFrameCount;
safeMutex.ReleaseLock();
return result;
}
void ClientInterface::simpleTask(BaseThread *callingThread) {
Chrono chrono;
if(SystemFlags::getSystemSettingType(SystemFlags::debugPerformance).enabled) chrono.start();