]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/terrain/terrain.factor
Use benchmark.struct vocab to record tick/draw timings in game loop
[factor.git] / extra / terrain / terrain.factor
index e1051cf21b8b52d4d0d8bada9eb4bf3f0f566782..5a6585103706c6e100574091dc0b3d9f33dc5e0e 100644 (file)
@@ -229,9 +229,9 @@ M: terrain-world tick-game-world
     GL_TEXTURE_2D GL_TEXTURE_WRAP_T GL_CLAMP_TO_EDGE glTexParameteri ;
 
 : sky-gradient ( world -- t )
-    game-loop>> tick-number>> SKY-PERIOD mod SKY-PERIOD /f ;
+    game-loop>> tick#>> SKY-PERIOD mod SKY-PERIOD /f ;
 : sky-theta ( world -- theta )
-    game-loop>> tick-number>> SKY-SPEED * ;
+    game-loop>> tick#>> SKY-SPEED * ;
 
 M: terrain-world begin-game-world
     "2.0" { "GL_ARB_vertex_buffer_object" "GL_ARB_shader_objects" }