diff tests/test_vulkan_wrapper.nim @ 607:64eb53f81cf6

add: improvments and E10 (pong)
author Sam <sam@basx.dev>
date Thu, 27 Apr 2023 00:23:23 +0700
parents 5eadc1e1d6d8
children 061054515d28
line wrap: on
line diff
--- a/tests/test_vulkan_wrapper.nim	Wed Apr 26 02:15:43 2023 +0700
+++ b/tests/test_vulkan_wrapper.nim	Thu Apr 27 00:23:23 2023 +0700
@@ -147,11 +147,10 @@
   for i in 0 ..< 3:
     for scene in scenes:
       for i in 0 ..< 1000:
-        engine.updateInputs()
-        setValue[float32](time.value, get[float32](time.value) + 0.0005)
-        if not engine.running or engine.keyIsDown(Escape):
+        if engine.updateInputs() != Running or engine.keyIsDown(Escape):
           engine.destroy()
           return
+        setValue[float32](time.value, get[float32](time.value) + 0.0005)
         engine.renderScene(scene)
   echo "Rendered ", engine.framesRendered, " frames"
   echo "Processed ", engine.eventsProcessed, " events"