InputRoll - don't call LastVisibleIndex, a calculated field, in a for loop, seems to be a nice speedup
This commit is contained in:
parent
e9d7c7c88c
commit
ed4ccdbfc6
|
@ -452,10 +452,11 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
// SuuperW: This allows user to see other colors in selected frames.
|
||||
Color rowColor = Color.White;
|
||||
int _lastVisibleRow = LastVisibleRow;
|
||||
int lastRow = -1;
|
||||
foreach (Cell cell in SelectedItems)
|
||||
{
|
||||
if (cell.RowIndex > LastVisibleRow || cell.RowIndex < FirstVisibleRow)
|
||||
if (cell.RowIndex > _lastVisibleRow || cell.RowIndex < FirstVisibleRow)
|
||||
continue;
|
||||
|
||||
Cell relativeCell = new Cell
|
||||
|
|
Loading…
Reference in New Issue