From a9178a2d21d3c74025522fb14c76f5e5b2619b87 Mon Sep 17 00:00:00 2001 From: 0xboobface <0xboobface@gmail.com> Date: Wed, 25 Jul 2018 17:41:03 +0200 Subject: [PATCH] Disabled the recording animation, because it takes up a lot of CPU --- src/main/java/ctbrec/ui/ThumbCell.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/ctbrec/ui/ThumbCell.java b/src/main/java/ctbrec/ui/ThumbCell.java index 2c7e3ca6..5edc7d9d 100644 --- a/src/main/java/ctbrec/ui/ThumbCell.java +++ b/src/main/java/ctbrec/ui/ThumbCell.java @@ -208,6 +208,7 @@ public class ThumbCell extends StackPane { private void determineResolution() { if(ThumbOverviewTab.resolutionProcessing.contains(model)) { + LOG.trace("Already fetching resolution for model {}", model.getName()); return; } @@ -253,6 +254,7 @@ public class ThumbCell extends StackPane { // when we first requested the stream info, so we remove this invalid value from the "cache" // so that it is requested again if(model.isOnline() && res[1] == 0) { + LOG.debug("Removing invalid resolution value for {}", model.getName()); resolutions.remove(model.getName()); } } @@ -351,13 +353,13 @@ public class ThumbCell extends StackPane { private void setRecording(boolean recording) { if(recording) { - recordingAnimation.playFromStart(); + //recordingAnimation.playFromStart(); colorNormal = colorRecording; nameBackground.setFill(colorNormal); } else { colorNormal = Color.BLACK; nameBackground.setFill(colorNormal); - recordingAnimation.stop(); + //recordingAnimation.stop(); } recordingIndicator.setVisible(recording); } @@ -429,7 +431,6 @@ public class ThumbCell extends StackPane { public void run() { try { if(start) { - // start the recording recorder.startRecording(model); } else { recorder.stopRecording(model); @@ -486,6 +487,7 @@ public class ThumbCell extends StackPane { LOG.debug(msg); throw new IOException("Response was " + msg.substring(0, Math.min(msg.length(), 500))); } else { + LOG.debug("Follow/Unfollow -> {}", msg); if(!follow) { Platform.runLater(() -> thumbCellList.remove(ThumbCell.this)); }