first little optimisation
This commit is contained in:
parent
3928655bb0
commit
9084be8bba
1 changed files with 4 additions and 2 deletions
|
@ -265,8 +265,10 @@ recordCommandBuffer
|
||||||
(V.fromList [ 0 ])
|
(V.fromList [ 0 ])
|
||||||
|
|
||||||
mapM_
|
mapM_
|
||||||
(Vk.cmdDraw commandBuffer (fromIntegral $ V.length $ meshVertices mesh) 1 0)
|
(\index ->
|
||||||
[first .. (count - 1)]
|
Vk.cmdDraw commandBuffer (fromIntegral $ V.length $ meshVertices mesh) 1 0 index
|
||||||
|
)
|
||||||
|
([first .. first + count])
|
||||||
)
|
)
|
||||||
draws
|
draws
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue