JavaFX Transition animation memory overflow

372 views Asked by At

I have a problem with creating JavaFX applications. My computer was installed Fedora 21 64bit 8G RAM .

When you create JavaFX TranslateTransition to move labels from one to the other side comes up loads of RAM to 100 % and CPU up to 60 %

When checking jconsole heap memory does not exceed 80MB .

Here's the code

...
translateTransition = new TranslateTransition();
translateTransition.setNode(label);
translateTransition.setFromX(position); 
translateTransition.setToX(-position);
translateTransition.setDuration(Duration.seconds(120));
translateTransition.setCycleCount(Timeline.INDEFINITE); 
translateTransition.play();

...
0

There are 0 answers