mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 10:12:53 +00:00
Merge pull request #724 from CocoTheOwner/noUpdateRendererSpam
Do not spam renderer updates
This commit is contained in:
commit
9297d4a7d2
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user