9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-26 02:29:14 +00:00

Merge pull request #724 from CocoTheOwner/noUpdateRendererSpam

Do not spam renderer updates
This commit is contained in:
Brian Fopiano
2022-02-09 13:48:22 -08:00
committed by GitHub

View File

@@ -192,7 +192,6 @@ public class VisionGUI extends JPanel implements MouseWheelListener, KeyListener
if(world.hasRealWorld()) {
try {
engine = IrisToolbelt.access(world.realWorld()).getEngine();
Iris.info("Updated Renderer");
return !engine.isClosed();
} catch(Throwable e) {
@@ -435,6 +434,11 @@ public class VisionGUI extends JPanel implements MouseWheelListener, KeyListener
@Override
public void paint(Graphics gx) {
if(engine.isClosed()) {
return;
}
if(updateEngine()) {
dump();
}