Open A31Nesta opened 1 year ago
im 99% sure thats a vs2 bug
I thought it was because of the applyForces function that apparently runs on the physics thread. This function accesses some global variables so that's why I thought that the problem was in tournament and not vs2
Yes, this is a race condition caused by tournament not using thread safe data structures to hold the balloons, spinners, etc. Maybe consider using a ConcurrentHashMap.newKeySet()
instead of an ArrayList
, which is both faster and also has O(1)
delete as opposed to O(n)
for ArrayList
I see you use a thread-safe CopyOnWriteArrayList for Pulses but not for anything else for some reason.
ah lol
im gonna fix that sometime
I'm creating a drone (10 spinners in total) and after a while of flying the ship gets stuck in the air and the only way to solve it is to close minecraft and open it again. Looking at the log you can see that the VS Physics thread crashed during the execution of the applyForces function:
I'm using
and also CC: Tweaked and Valkyrien Computers but they're not really related to this problem because I had this exact same problem before installing computercraft while playing with my previous drone (9 spinners).