first little optimisation

This commit is contained in:
nek0 2023-05-20 18:36:31 +02:00 committed by Amedeo Molnár
parent 3928655bb0
commit 9084be8bba

View file

@ -265,8 +265,10 @@ recordCommandBuffer
(V.fromList [ 0 ])
mapM_
(Vk.cmdDraw commandBuffer (fromIntegral $ V.length $ meshVertices mesh) 1 0)
[first .. (count - 1)]
(\index ->
Vk.cmdDraw commandBuffer (fromIntegral $ V.length $ meshVertices mesh) 1 0 index
)
([first .. first + count])
)
draws