RP-SLAM: Real-time Photorealistic SLAM with Efficient 3D Gaussian Splatting