Hi

In the Stats view, I see the “Materials (s)” go high when I add more tiles into my game. Now, the materials are from a tilemap that is loaded from the asset manager:

```
Material mat = assets.loadMaterial("Materials/WangBlobLight.j3m"); //tileType.getTileSet()
mat.setTransparent(false);
geom.setMaterial(mat);
geom.setQueueBucket(RenderQueue.Bucket.Opaque);
this.updateWangBlobTile(geom, tileType);
```

and rotating the material:

```
public void updateWangBlobTile(Spatial s, TileType tileType) {
Geometry geom;
if (s instanceof Geometry) {
geom = (Geometry) s;
} else {
geom = (Geometry) ((Node) s).getChild("MapTile"); //From ModelViewState
}
Material mat = geom.getMaterial();
//Offset tile
mat.setInt("numTilesOffsetX", clientMapState.getWangBlobTileNumber(tileType.getTileIndex()));
//Rotate tile
Quaternion rot = new Quaternion();
float rotations = clientMapState.getWangBlobRotations(tileType.getTileIndex());
float ninety_degrees_to_radians = FastMath.PI / 2;
rot.fromAngleAxis(-ninety_degrees_to_radians * rotations, Vector3f.UNIT_Z);
//Reset rotation
geom.setLocalRotation(new Quaternion());
//Set correct rotation
geom.rotate(rot);
//log.info("Coords: "+s.getLocalTranslation() +" rotated: "+geom.getLocalRotation());
}
```

Should I be doing more caching of the material and re-using the same material (does that make a difference?)

My scene looks like this:

Every tile is is generated like the above. There’s one light source on the ship in the center.

Should I worry about the Materials (S) count here?

Any input is appreciated