Compare commits
1 commit
master
...
parallel-e
Author | SHA1 | Date | |
---|---|---|---|
f30bd58fed |
1 changed files with 8 additions and 3 deletions
|
@ -615,9 +615,14 @@ drawMap = do
|
||||||
closePath ctx
|
closePath ctx
|
||||||
fillColor ctx (rgb 255 255 255)
|
fillColor ctx (rgb 255 255 255)
|
||||||
fill ctx
|
fill ctx
|
||||||
void $ sequence $ parMap rpar (\(i, ls) -> void $ sequence $ parMap rpar
|
-- void $ sequence $ parMap rpar
|
||||||
(\(j, t) -> drawTile ud ctx (partposanims M.! (i, j)) pr pc i j t)
|
mapM_
|
||||||
(reverse $ zip [1..] ls))
|
(\(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)
|
||||||
|
)
|
||||||
(zip [1..] (toLists mat))
|
(zip [1..] (toLists mat))
|
||||||
mapM_ (\(V2 sr sc, pa, perc) -> when pa $ do
|
mapM_ (\(V2 sr sc, pa, perc) -> when pa $ do
|
||||||
let lx = realToFrac $ 640 + ((sc - pc) +
|
let lx = realToFrac $ 640 + ((sc - pc) +
|
||||||
|
|
Loading…
Reference in a new issue