I optimized the 2d mode, previously the camera from 3d mode continued to work there, which was very expensive. Also fix a few small bugs.