diff --git a/engine b/engine index 1b9ce54..43d6294 160000 --- a/engine +++ b/engine @@ -1 +1 @@ -Subproject commit 1b9ce5410083bd9346aca642de6c8180116987e7 +Subproject commit 43d62948b7d58deacc4f2090388a6c72de1286bc diff --git a/game/game.py b/game/game.py index ab9d95e..e0f4c07 100644 --- a/game/game.py +++ b/game/game.py @@ -192,11 +192,9 @@ def main(): select_texture(0, tiles_texture, tiles_sampler) select_texture(1, heightmap, terrain_heightmap_sampler) select_texture(2, normalmap, terrain_normalmap_sampler) - select_vertices(tiles_vertices) draw_begin = time.thread_time() terrain_batch.draw() draw_end = time.thread_time() - unselect_vertices(tiles_vertices) unselect_texture(0, tiles_texture) unselect_texture(1, heightmap) unselect_texture(2, normalmap) @@ -215,9 +213,7 @@ def main(): select_texture(0, tests_texture, tests_sampler) select_texture(1, heightmap, tests_heightmap_sampler) select_texture(2, normalmap, tests_normalmap_sampler) - select_vertices(tests_vertices) tests_batch.draw() - unselect_vertices(tests_vertices) unselect_texture(0, tests_texture) unselect_texture(1, heightmap) unselect_texture(2, normalmap)