mirror of
https://github.com/glest/glest-source.git
synced 2025-10-04 03:11:53 +02:00
- try to get threaded client working without lag
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user