Archived
0

название потока

This commit is contained in:
2019-01-29 22:44:47 +03:00
parent 500b52e83a
commit 7c20c5b343
2 changed files with 5 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ public class GameLoop extends Thread {
private TimeProcessor gameTimer; private TimeProcessor gameTimer;
public GameLoop() { public GameLoop() {
super(); super("Game Loop Thread");
setTps(20); setTps(20);
setPercentWarnLowTps(5); setPercentWarnLowTps(5);
} }

View File

@@ -14,6 +14,10 @@ public class KeepAliveThread extends Thread {
@Setter @Setter
private int interval = 10; private int interval = 10;
public KeepAliveThread() {
super("Keep-Alive Thread");
}
public void notifyLock() { public void notifyLock() {
synchronized (lock) { synchronized (lock) {
lock.notify(); lock.notify();