Closed jds691 closed 7 months ago
This problem also occurs with the Node class for it's components and children fields.
This seems to potentially affect Engine.quit as well.
A potential solution to this is maintaining multiple roots and swapping them each frame but this requires double the amount of memory.
A ConcurrentModificationException is thrown when attempting to add or remove from the scene root in the middle of a frame.
To fix this issue a queue system should be implemented which adds or removes the nodes from the root after a frame has been processed.