As optical systems continue to advance, non-uniform rational B-spline (NURBS) surfaces increasingly being considered in asymmetric optical systems due to their localized control characteristics. However, the representation of NURBS surfaces has complicated the analysis of these systems, leading to a significant computational burden. To address this challenge, we propose an optimizing algorithm for imaging optical systems based on high-precision ray tracing of NURBS surfaces. This method initiates with getting a knot grid as prior information, in conjunction with the Newton-Raphson algorithm, to obtain high-precision numerical solutions for the intersection of rays with a NURBS surface. Building upon this methodology, we introduce an optimization technique that includes shape evaluation to generate an evaluation function specific to NURBS surfaces. This approach is then applied within a rapid optimization process that accounted for the region of ray influence. Under consistent control point grids and sampling ray conditions, we present an off-axis four-mirror system to showcase that our algorithm has achieved a computational efficiency improvement of approximately 14 times compared to the previous method. This high-precision imaging design based on spline surfaces fulfills the need for efficient and accurate algorithms for NURBS surface applications in various imaging systems, providing guidance for practical applications.