small optimization on drawScene