texture memory usage optimisation