Attempt to improve perfomance
This commit is contained in:
@@ -239,7 +239,7 @@ drawInspectWall w wl =
|
||||
drawDoorPaths :: World -> Int -> Picture
|
||||
drawDoorPaths w drid = fromMaybe mempty $ do
|
||||
paths <- w ^? cWorld . doors . ix drid . drObstructs
|
||||
return $ foldMap (drawPathEdge . (^. _3)) paths
|
||||
return $ foldMap' (drawPathEdge . (^. penPathEdge)) paths
|
||||
|
||||
drawPathEdge :: PathEdge -> Picture
|
||||
drawPathEdge pe =
|
||||
|
||||
Reference in New Issue
Block a user