Don't kill entire OpenGL cache on undo.
The comment regarding bitmaps was true for one more month in 2018, but hasn't been true for the last 3 years, and clearing the cache is a huge performance hit.
This commit is contained in:
parent
41f6e634c6
commit
d58427a519
|
@ -350,9 +350,6 @@ void SCH_EDIT_FRAME::PutDataInPreviousState( PICKED_ITEMS_LIST* aList )
|
|||
}
|
||||
}
|
||||
|
||||
// Bitmaps are cached in Opengl: clear the cache, because
|
||||
// the cache data can be invalid
|
||||
GetCanvas()->GetView()->RecacheAllItems();
|
||||
GetCanvas()->GetView()->ClearHiddenFlags();
|
||||
}
|
||||
|
||||
|
@ -383,7 +380,6 @@ void SCH_EDIT_FRAME::RollbackSchematicFromUndo()
|
|||
m_toolManager->GetTool<EE_SELECTION_TOOL>()->RebuildSelection();
|
||||
}
|
||||
|
||||
SyncView();
|
||||
GetCanvas()->Refresh();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue