mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-24 02:51:20 -08:00
Added spotless and CONTRIBUTING.md (#172)
This commit is contained in:
1 parent
1e4013be98
commit
dedec668e1
12 files changed
+541
-1688
No files matched your search
@@ -236,7 +236,7 @@ public class VRServer extends Thread {
|
||||
public void run() {
|
||||
trackersServer.start();
|
||||
while (true) {
|
||||
// final long start = System.currentTimeMillis();
|
||||
// final long start = System.currentTimeMillis();
|
||||
do {
|
||||
Runnable task = tasks.poll();
|
||||
if (task == null)
|
||||
@@ -256,7 +256,7 @@ public class VRServer extends Thread {
|
||||
for (Bridge bridge : bridges) {
|
||||
bridge.dataWrite();
|
||||
}
|
||||
// final long time = System.currentTimeMillis() - start;
|
||||
// final long time = System.currentTimeMillis() - start;
|
||||
try {
|
||||
Thread.sleep(1); // 1000Hz
|
||||
} catch (InterruptedException e) {}
|
||||
|
||||
@@ -2,9 +2,10 @@ package dev.slimevr.vr.trackers;
|
||||
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
|
||||
public interface Device {
|
||||
|
||||
public static final AtomicInteger nextLocalDeviceId = new AtomicInteger();
|
||||
|
||||
|
||||
int getId();
|
||||
}
|
||||
@@ -7,7 +7,7 @@ public enum TrackerFilters {
|
||||
EXTRAPOLATION(2);
|
||||
|
||||
public static final TrackerFilters[] values = values();
|
||||
|
||||
|
||||
public final int id;
|
||||
|
||||
TrackerFilters(int id) {
|
||||
|
||||
Reference in new issue
Block a user