Преглед изворни кода

Experimentaly disabling saccades

master
Pete McNeil пре 4 година
родитељ
комит
8eea51e409
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4
    0
      SNFMulti.cpp

+ 4
- 0
SNFMulti.cpp Прегледај датотеку

@@ -1604,6 +1604,7 @@ int snf_EngineHandler::scanMessage(
//for(int a = 0, b = MyScanData.FilteredData.size(); a < b; a++) // Scan through the filtered data one
// CurrentMatrix->EvaluateThis(MyScanData.FilteredData[a]); // byte at a time.

/** 20200618_M Experiment stripping out saccades to check performance hit
unsigned int fullLength = MyScanData.FilteredData.size();

SaccadeBrain.applySaccades(CurrentMatrix, MyScanData.FilteredData);
@@ -1612,6 +1613,9 @@ int snf_EngineHandler::scanMessage(
CurrentMatrix->evaluateSegment(MyScanData.FilteredData, 0, fullLength);
SaccadeBrain.learnMatches(CurrentMatrix->ResultList);
}
**/
size_t fullLength = MyScanData.FilteredData.size();
CurrentMatrix->evaluateSegment(MyScanData.FilteredData, 0, fullLength); // Only do a full scan -- see comment above
}

DebugInfo = "scanMessage() Scan Data Complete"; // If we panic, here we are.

Loading…
Откажи
Сачувај