decrease player update tick form 1000MS to 100MS
This commit is contained in:
@@ -47,7 +47,7 @@ public class UpdateThread implements Runnable {
|
|||||||
while (true) {
|
while (true) {
|
||||||
try {
|
try {
|
||||||
this.processPlayerUpdate();
|
this.processPlayerUpdate();
|
||||||
Thread.sleep(1000); // Pause for 1000ms to reduce CPU usage
|
Thread.sleep(100); // Pause for 100ms to reduce CPU usage
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
Logger.error("Thread interrupted", e);
|
Logger.error("Thread interrupted", e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user