Reduce number of multiply ops per frame and increase x-axis clipper range for orthographic projection.

This commit is contained in:
Dileep V. Reddy 2024-10-26 08:22:43 -06:00 committed by Rachael Alexanderson
commit 2ba57b5068
3 changed files with 7 additions and 2 deletions

View file

@ -476,8 +476,8 @@ angle_t Clipper::PointToPseudoOrthoAngle(double x, double y)
{
angle_t af = viewpoint->FrustAngle;
double xproj = disp.XY().Length() * deltaangle(disp.Angle(), viewpoint->Angles.Yaw).Sin();
xproj *= viewpoint->ScreenProj;
if (fabs(xproj) < r_viewwindow.WidescreenRatio*1.13) // 2.0)
xproj *= viewpoint->ScreenProjX;
if (fabs(xproj) < 1.13)
{
return AngleToPseudo( viewpoint->Angles.Yaw.BAMs() - xproj * 0.5 * af );
}