Reduce number of multiply ops per frame and increase x-axis clipper range for orthographic projection.
This commit is contained in:
parent
8b73332366
commit
2ba57b5068
3 changed files with 7 additions and 2 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue