aboutsummaryrefslogtreecommitdiff
path: root/channel_2d_gl_interop.py
diff options
context:
space:
mode:
Diffstat (limited to 'channel_2d_gl_interop.py')
-rw-r--r--channel_2d_gl_interop.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/channel_2d_gl_interop.py b/channel_2d_gl_interop.py
index 69af67b..a47d6c0 100644
--- a/channel_2d_gl_interop.py
+++ b/channel_2d_gl_interop.py
@@ -180,6 +180,10 @@ particles = Particles(
def on_display():
for i in range(0,updates_per_frame):
lattice.evolve()
+
+ lattice.collect_gl_moments()
+
+ for i in range(0,updates_per_frame):
lattice.update_gl_particles(particles)
lattice.sync()