Browse Source

minor opti : don't flush invisible tilegroup (text)

Nicolas Cannasse 4 years ago
parent
commit
9d3e0aad53
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h2d/TileGroup.hx

+ 1 - 1
h2d/TileGroup.hx

@@ -686,7 +686,7 @@ class TileGroup extends Drawable {
 		// On some mobile GPU, uploading while rendering does create a lot of stall.
 		// Let's make sure to force the upload before starting while we are still
 		// syncing our 2d scene.
-		content.flush();
+		if( visible ) content.flush();
 	}
 
 	/**