mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
JIT: Don't always look up symbols for blocks
With tons of symbols, this results in noticeable stuttering, so skip lookups if the perf dir option isn't set anyway.
This commit is contained in:
@ -132,12 +132,18 @@ void JitBaseBlockCache::FinalizeBlock(JitBlock& block, bool block_link,
|
||||
LinkBlock(block);
|
||||
}
|
||||
|
||||
if (Symbol* symbol = g_symbolDB.GetSymbolFromAddr(block.effectiveAddress))
|
||||
Symbol* symbol = nullptr;
|
||||
if (JitRegister::IsEnabled() &&
|
||||
(symbol = g_symbolDB.GetSymbolFromAddr(block.effectiveAddress)) != nullptr)
|
||||
{
|
||||
JitRegister::Register(block.checkedEntry, block.codeSize, "JIT_PPC_%s_%08x",
|
||||
symbol->function_name.c_str(), block.physicalAddress);
|
||||
}
|
||||
else
|
||||
{
|
||||
JitRegister::Register(block.checkedEntry, block.codeSize, "JIT_PPC_%08x",
|
||||
block.physicalAddress);
|
||||
}
|
||||
}
|
||||
|
||||
JitBlock* JitBaseBlockCache::GetBlockFromStartAddress(u32 addr, u32 msr)
|
||||
|
Reference in New Issue
Block a user