Move towards uploading certain vbos less than once per frame (floor)

This commit is contained in:
2023-03-17 17:47:12 +00:00
parent 850fdf1783
commit d8fb7a1f99
7 changed files with 29 additions and 8 deletions
+4 -4
View File
@@ -24,14 +24,14 @@ generateWorldFromSeed i = do
writeFile "log/aGeneratedRoomLayout" ""
generateGraphs
(roomList, bounds) <- layoutLevelFromSeed 0 i
return $!
postGenerationProcessing $!
postGenerationProcessing $!
_gwWorld (generateLevelFromRoomList roomList initialWorld{_randGen = mkStdGen i})
& cWorld . cwGen . cwgRoomClipping .~ bounds
& cWorld . cwGen . cwgSeed .~ i
postGenerationProcessing :: World -> World
postGenerationProcessing w = foldl' assignPushDoors w (w ^. cWorld . lWorld . doors)
postGenerationProcessing :: World -> IO World
postGenerationProcessing w =
return $ foldl' assignPushDoors w (w ^. cWorld . lWorld . doors)
generateGraphs :: IO ()
generateGraphs = TIO.writeFile "graph/itemCombinations.gv" combinationsDotGraph