optimize mesh renderer