mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-03-25 22:54:52 +01:00
Fix tests
This commit is contained in:
parent
89074eafa2
commit
87ce7a85af
|
|
@ -57,7 +57,6 @@ public class SysTest {
|
|||
testAlert();
|
||||
testDebug();
|
||||
testTimer();
|
||||
testPriority();
|
||||
testUrl();
|
||||
testClipboard();
|
||||
}
|
||||
|
|
@ -101,24 +100,6 @@ public class SysTest {
|
|||
System.out.println("---- Test Timer ----\n");
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests the priority
|
||||
*/
|
||||
private void testPriority() {
|
||||
System.out.println("==== Test Priority ====");
|
||||
|
||||
busyWait(Sys.LOW_PRIORITY, 5, "Busy waiting in low priority...");
|
||||
busyWait(Sys.NORMAL_PRIORITY, 5, "Busy waiting in normal priority...");
|
||||
busyWait(Sys.HIGH_PRIORITY, 5, "Busy waiting in high priority...");
|
||||
busyWait(Sys.REALTIME_PRIORITY, 5, "Busy waiting in realtime priority (may lag the computer!)...");
|
||||
|
||||
// reset
|
||||
System.out.println("Resetting to normal");
|
||||
Sys.setProcessPriority(Sys.NORMAL_PRIORITY);
|
||||
|
||||
System.out.println("---- Test Priority ----\n");
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests the alert
|
||||
*/
|
||||
|
|
@ -154,7 +135,6 @@ public class SysTest {
|
|||
long future = Sys.getTime() + (Sys.getTimerResolution() * seconds);
|
||||
|
||||
System.out.print(message);
|
||||
Sys.setProcessPriority(priority);
|
||||
|
||||
// waste some cycles
|
||||
while (Sys.getTime() < future) {
|
||||
|
|
|
|||
|
|
@ -136,8 +136,6 @@ public class SyncTest {
|
|||
|
||||
// if we have a module - get going
|
||||
if (module != null) {
|
||||
// high priority... - might otherwise skip
|
||||
Sys.setProcessPriority(Sys.HIGH_PRIORITY);
|
||||
|
||||
// go go go!
|
||||
run();
|
||||
|
|
@ -258,4 +256,4 @@ public class SyncTest {
|
|||
FSound.FSOUND_Close();
|
||||
FMOD.destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue