Rendering optimisations (mainly inlining)
This commit is contained in:
+1
-2
@@ -49,7 +49,6 @@ doDrawing pdata w = do
|
||||
(wallPointsCol,windowPoints) = wallsAndWindows w
|
||||
lightPoints = lightsForGloom w
|
||||
viewFroms = _cameraViewFrom w
|
||||
pic = worldPictures w
|
||||
-- bind as much data into vbos as feasible at this point
|
||||
-- poke wall points and colors
|
||||
nWalls <- poke224s (shadVBOptr $ _wallTextureShader pdata) wallPointsCol
|
||||
@@ -79,7 +78,7 @@ doDrawing pdata w = do
|
||||
|
||||
_ <- renderFoldable pdata $ polysToPic $ foregroundPics w
|
||||
|
||||
vnums <- pokeBindFoldableLayer pdata pic
|
||||
vnums <- pokeBindFoldableLayer pdata $ worldPictures w
|
||||
let shads = _pictureShaders pdata
|
||||
renderLayer 0 shads vnums
|
||||
|
||||
|
||||
Reference in New Issue
Block a user