diff tests/test_gltf.nim @ 1321:385dbd68a947

did: a TON of copy elimination, some tests run now waaaay faster
author sam <sam@basx.dev>
date Thu, 15 Aug 2024 12:12:27 +0700
parents 7be3628298f5
children 3ba2c180e52c
line wrap: on
line diff
--- a/tests/test_gltf.nim	Wed Aug 14 20:06:51 2024 +0700
+++ b/tests/test_gltf.nim	Thu Aug 15 12:12:27 2024 +0700
@@ -136,7 +136,7 @@
   proc drawNode(commandbuffer: VkCommandBuffer, pipeline: Pipeline, nodeId: int, transform: Mat4) =
     let nodeTransform = gltfData.nodes[nodeId].transform * transform
     if gltfData.nodes[nodeId].mesh >= 0:
-      for primitive in gltfData.meshes[gltfData.nodes[nodeId].mesh]:
+      for primitive in gltfData.meshes[gltfData.nodes[nodeId].mesh].mitems:
         renderWithPushConstant(
           commandbuffer = commandbuffer,
           pipeline = pipeline,