mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-13 02:21:53 +00:00
Avoid calling thread->getName() in release builds.
Profile shows this will save a couple percentage points.
This commit is contained in:
parent
138b3a0823
commit
0eb13142aa
@ -2172,7 +2172,10 @@ void __KernelSwitchContext(Thread *target, const char *reason)
|
||||
__KernelSaveContext(&cur->context);
|
||||
oldPC = currentMIPS->pc;
|
||||
oldUID = cur->GetUID();
|
||||
oldName = cur->GetName();
|
||||
|
||||
// Profile on Windows shows this takes time, skip it.
|
||||
if (DEBUG_LEVEL <= MAX_LOGLEVEL)
|
||||
oldName = cur->GetName();
|
||||
}
|
||||
currentThread = target->GetUID();
|
||||
__KernelLoadContext(&target->context);
|
||||
|
Loading…
x
Reference in New Issue
Block a user