Fixed a bug where the camera would jitter on high framerates