Fixed update time bug in server and optimized input updating