Debugger: Optimization for mouse over logic
This commit is contained in:
parent
75eea32c7f
commit
1a52efe3b7
1 changed files with 7 additions and 0 deletions
|
@ -511,6 +511,7 @@ namespace Mesen.GUI.Debugger
|
|||
|
||||
private frmCodeTooltip _tooltip = null;
|
||||
private CodeLabel _lastLabelTooltip = null;
|
||||
private int _lastTooltipAddress = -1;
|
||||
private void ctrlHexViewer_ByteMouseHover(int address)
|
||||
{
|
||||
if(address < 0 || !mnuShowLabelInfoOnMouseOver.Checked) {
|
||||
|
@ -521,6 +522,12 @@ namespace Mesen.GUI.Debugger
|
|||
return;
|
||||
}
|
||||
|
||||
if(_lastTooltipAddress == address) {
|
||||
return;
|
||||
}
|
||||
|
||||
_lastTooltipAddress = address;
|
||||
|
||||
CodeLabel label = null;
|
||||
switch(_memoryType) {
|
||||
case DebugMemoryType.CpuMemory:
|
||||
|
|
Loading…
Add table
Reference in a new issue