loading working with deltaTime and max