RemedyGS: Defend 3D Gaussian Splatting against Computation Cost Attacks