however i get a BufferOverflowException when i set the updateSpeed of the TM to 100. When its 60 i dont seem to geht the exception very often but it still occurs :|
java.nio.BufferOverflowException
at java.nio.Buffer.nextPutIndex(Buffer.java:495)
at java.nio.DirectFloatBufferU.put(DirectFloatBufferU.java:245)
at com.jmex.effects.TrailMesh.updateStep(TrailMesh.java:233)
at com.jmex.effects.TrailMesh.update(TrailMesh.java:196)
...
i have worked this issue for days now. I really have no clue as to why this happens.
i ended up catching the BufferOverflowException with a try catch around the call to TrailMesh.update(…) and it seems like there are no (visible) side effects.
please get back to me if you find the actual solution to this.
i unfortunately have no idea if i can make a testcase since the damn thing happens pretty random to me … however it makes a lot of sense what you're saying i am not updating the TrailMesh for quite some time, since i only need it in special occasions. the exception is thrown after i start updating it again … so you're on to something