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()) {
|
if(world.hasRealWorld()) {
|
||||||
try {
|
try {
|
||||||
engine = IrisToolbelt.access(world.realWorld()).getEngine();
|
engine = IrisToolbelt.access(world.realWorld()).getEngine();
|
||||||
Iris.info("Updated Renderer");
|
|
||||||
return !engine.isClosed();
|
return !engine.isClosed();
|
||||||
} catch(Throwable e) {
|
} catch(Throwable e) {
|
||||||
|
|
||||||
@ -435,6 +434,11 @@ public class VisionGUI extends JPanel implements MouseWheelListener, KeyListener
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void paint(Graphics gx) {
|
public void paint(Graphics gx) {
|
||||||
|
|
||||||
|
if(engine.isClosed()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(updateEngine()) {
|
if(updateEngine()) {
|
||||||
dump();
|
dump();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user