v0.4.2: improved performance by skipping the drawing of offscreen gizmos
This commit is contained in:
@@ -72,7 +72,7 @@ public class Group extends Gizmo {
|
||||
public void draw() {
|
||||
for (int i=0; i < length; i++) {
|
||||
Gizmo g = members.get( i );
|
||||
if (g != null && g.exists && g.visible) {
|
||||
if (g != null && g.exists && g.isVisible()) {
|
||||
g.draw();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user