YSCEDC / YSCE

YSFlight Community Edition
BSD 3-Clause "New" or "Revised" License
13 stars 4 forks source link

Improve object draw culling #81

Closed JOBBIN9422 closed 1 year ago

JOBBIN9422 commented 1 year ago

Vanilla YSFLIGHT only checks that the apparent radius of an object (screen size) is >=1 prior to drawing it. Originally, we enhanced this check to also require that the object is in-front of the camera. This check is further enhanced to also check that the object is within the camera's field of view. Aircraft are also culled now.

NodokaHanamura commented 1 year ago

Just tested on my end, cleared for merge.