Hex Editor - another tiny speedup by moving something outside the values generation function

This commit is contained in:
adelikat 2012-06-18 03:39:21 +00:00
parent b4c10f2e15
commit 640269318c
1 changed files with 2 additions and 3 deletions

View File

@ -152,7 +152,6 @@ namespace BizHawk.MultiClient
public string GenerateMemoryViewString()
{
StringBuilder rowStr = new StringBuilder();
addrOffset = (NumDigits % 4) * 9; //TODO: I dont think this has any purpose here anymore, if this needs to be calculated, it could be done outside the frame loop
for (int i = 0; i < RowsVisible; i++)
{
@ -160,7 +159,6 @@ namespace BizHawk.MultiClient
addr = (row << 4);
if (addr >= Domain.Size)
break;
//rowStr.AppendFormat(NumDigitsStr, addr);
for (int j = 0; j < 16; j += DataSize)
{
@ -965,6 +963,7 @@ namespace BizHawk.MultiClient
private Point GetAddressCoordinates(int address)
{
addrOffset = (NumDigits % 4) * 9;
switch (DataSize)
{
default: