![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re^3: Graphics: OpenGL in Perl/Tk ... with GLUTby cavac (Vicar) |
on Jan 13, 2023 at 09:13 UTC ( #11149561=note: print w/replies, xml ) | Need Help?? |
JavaScript doesn't have what you would call an "event loop", it uses callbacks to react to events. As for cyclic stuff (rendering, physics, etc), you just use setInterval(). As far as communication with the Perl backend, i make extensive use of Websockets. It really depends on your webserver setup on how you do that, but with my own webserver i use a (slightly adapted) version of Protocol::WebSocket::Frame
PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
In Section
Seekers of Perl Wisdom
|
|