Use time delta to replace fps when refresh