Skip to content

Commit

Permalink
New extended gamma test, fixed long 10% non gamma corrected perceived…
Browse files Browse the repository at this point in the history
… response time results, added pre-test latency check, improved vsync and framerate control, improved UE4 performance & vsync control, and much more
  • Loading branch information
andymanic committed Feb 9, 2022
1 parent 3093a3c commit 46a34da
Show file tree
Hide file tree
Showing 14 changed files with 441 additions and 372 deletions.
25 changes: 14 additions & 11 deletions Hardware/OSRTT_Full_Code/OSRTT_Full_Code.ino
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SPISettings settingsA(10000000, MSBFIRST, SPI_MODE0);

//Serial connection values
bool connected = false;
String firmware = "2.1";
String firmware = "2.2";
int testRuns = 4;
bool vsync = true;
bool extendedGamma = true;
Expand Down Expand Up @@ -306,11 +306,15 @@ void runInputLagTest(int timeBetween)
}

void checkLatency() {
delay(100);
Keyboard.print('Q');
delay(100);
runADC(1000,1000,'F',"TL:");
while (input[0] != 'X')
char input[INPUT_SIZE + 1];
unsigned long startTime = micros();
while (curr_time < (startTime + 3000))
{
curr_time = micros();
for (int i = 0; i < INPUT_SIZE + 1; i++)
{
input[i] = ' ';
Expand Down Expand Up @@ -373,7 +377,8 @@ void loop() {
{
// Brightness Calibration screen
Serial.setTimeout(200);
int potVal = 165;
int mod = input[1] - '0';
int potVal = 165 + mod;
digitalPotWrite(potVal);
Serial.println("BRIGHTNESS CHECK");
delay(500);
Expand Down Expand Up @@ -467,6 +472,7 @@ void loop() {
Serial.print(",");
}
Serial.println();
Serial.println("Handshake");
}
else if (input[0] == 'M')
{
Expand Down Expand Up @@ -551,6 +557,11 @@ void loop() {
if (buttonState == HIGH) //Run when button pressed
{
Serial.setTimeout(300);
Keyboard.print(fpsLimit);
if (vsync == false)
{
Keyboard.print('V');
}
// Check USB voltage level
//int voltageTest = checkUSBVoltage();
//if (voltageTest == 0)
Expand Down Expand Up @@ -579,19 +590,11 @@ void loop() {
delay(100);
Serial.println("Test Started");
// Set FPS limit (default 1000 FPS, key '1')
Keyboard.print(fpsLimit);
delay(50);
if (vsync == false)
{
Keyboard.print('V');
}
runGammaTest();
delay(100);
while (input[0] != 'X')
{
Keyboard.print('Q');
delay(100);
runADC(1000,1000,'F',"TL:");
for (int i = 0; i < INPUT_SIZE + 1; i++)
{
input[i] = ' ';
Expand Down
1 change: 1 addition & 0 deletions OSRTT Launcher/OSRTT Launcher/Main.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 46a34da

Please sign in to comment.