Hey all! Just started using Java3D for a college project; I'm planning to do a 3D tennis game. I've got the basics in place - a court, with the ball bouncing around in it - but I've come across a problem. Basically, I can run the program several times, and it works perfectly and very fast each time. But then, I'll try it again and it'll start running at something in the region of 1 FPS for no apparent reason. Furthermore, it'll perform in this way every time I run it from then on, until I restart my computer.
I've tried writing it in immediate, retained and mixed modes, and the same thing happens in each. I'm stumped as to why this might be happening; the only thing I can think of is that I haven't performed a proper cleanup when terminating the program, even though I did write code to do so. Does anyone have any idea what might be causing this? As you can imagine, it's kind of annoying to have to restart my computer every twenty minutes just so I can keep testing.
Edited to add: it also seems to have the effect of slightly interfering with Windows - after this happens, dragging windows etc. sometimes leaves artefacts behind in their previous positions.
Thanks, and expect many more pointless questions in the near future!