название потока
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user