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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user