Skip to content

Commit 6545816

Browse files
committed
adjust animation player fps
1 parent 44e1288 commit 6545816

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/main/java/bigtrace/animation/AnimationPlayer.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public AnimationPlayer(final BigTrace<?> bt_, AnimationPanel aPanel_)
2121
{
2222
this.bt = bt_;
2323
this.aPanel = aPanel_;
24-
timer = new Timer(1000 / 60, e -> tick());
24+
timer = new Timer(1000 / 30, e -> tick());
2525
}
2626

2727
public void play()
@@ -45,9 +45,9 @@ public void play()
4545

4646
public void stop()
4747
{
48+
timer.stop();
4849
playing = false;
4950
aPanel.bUpdateSlider = bSliderUpdateState;
50-
timer.stop();
5151
aPanel.butPlayStop.setIcon( aPanel.tabIconPlay );
5252
aPanel.butPlayStop.setToolTipText( "Play Preview" );
5353
bt.bInputLock = false;

0 commit comments

Comments
 (0)