Test aggressive object culling
This commit is contained in:
@@ -188,6 +188,8 @@ clipZoom = min 20 . max 0.2
|
||||
setViewDistance :: Configuration -> World -> World
|
||||
setViewDistance cfig w = w & viewDistance
|
||||
.~ sqrt (halfWidth cfig ** 2 + halfHeight cfig ** 2) / _cameraZoom w
|
||||
-- .~ max (halfWidth cfig) (halfHeight cfig) / _cameraZoom w
|
||||
|
||||
|
||||
-- TODO consider adding visible/nearby creatures as view points
|
||||
farWallDist :: Point2 -> Configuration -> World -> Float
|
||||
|
||||
Reference in New Issue
Block a user