deparallelize drawing

This commit is contained in:
nek0 2019-03-07 16:43:00 +01:00
parent 46068b99ab
commit f30bd58fed

View file

@ -615,9 +615,14 @@ drawMap = do
closePath ctx
fillColor ctx (rgb 255 255 255)
fill ctx
void $ sequence $ parMap rpar (\(i, ls) -> void $ sequence $ parMap rpar
-- void $ sequence $ parMap rpar
mapM_
(\(i, ls) ->
-- void $ sequence $ parMap rpar
mapM_
(\(j, t) -> drawTile ud ctx (partposanims M.! (i, j)) pr pc i j t)
(reverse $ zip [1..] ls))
(reverse $ zip [1..] ls)
)
(zip [1..] (toLists mat))
mapM_ (\(V2 sr sc, pa, perc) -> when pa $ do
let lx = realToFrac $ 640 + ((sc - pc) +