NullContext thread safety
The fields `timeThen` and `timeLate` are static. If multiple Applications are launched in different threads in headless mode, sync fails. This can be fixed removing the static modifier of the fields.
This commit is contained in:
parent
d20cf3f20a
commit
543268593b
@ -96,8 +96,8 @@ public class NullContext implements JmeContext, Runnable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static long timeThen;
|
private long timeThen;
|
||||||
private static long timeLate;
|
private long timeLate;
|
||||||
|
|
||||||
public void sync(int fps) {
|
public void sync(int fps) {
|
||||||
long timeNow;
|
long timeNow;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user