Changed: #1661 Slow rendering warning is optional with default to not display

This commit is contained in:
Jindra Petřík
2021-03-23 11:18:08 +01:00
parent 204787bc73
commit f2f71a7ceb
5 changed files with 20 additions and 2 deletions

View File

@@ -1907,7 +1907,9 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
sw.stop();
if (sw.getElapsedMilliseconds() > 100) {
logger.log(Level.WARNING, "Slow rendering. {0}. frame, time={1}, {2}ms", new Object[]{frame, time, sw.getElapsedMilliseconds()});
if (Configuration.showSlowRenderingWarning.get()) {
logger.log(Level.WARNING, "Slow rendering. {0}. frame, time={1}, {2}ms", new Object[]{frame, time, sw.getElapsedMilliseconds()});
}
}
if (renderContext.borderImage != null) {