moved lastFrame set from new texture to alloc time