http://www.perlmonks.org?node_id=1087788


in reply to Re: OpenGL and AnyEvent
in thread OpenGL and AnyEvent

Thank you, Corion!

I've found that the main trick is to call glutPostRedisplay too, e.g. instead of glutMainLoop

my $refresh_world = sub { glutMainLoopEvent; glutPostRedisplay; }; my $t; $t = AE::timer 0, 0.01, sub { $refresh_world->(); }; $refresh_world->(); AE::cv->recv;