Glad you were able to find a solution!
Elm WebGL support is primitive and unofficial. If you run into performance
issues, the culprit is probably the elm-webgl package and not the
underlying language/platform.
On Sun, Nov 6, 2016 at 4:56 AM, Gaëtan André wrote:
> OK I solved my problem.
>
> Cul
OK I solved my problem.
Culling foodElements (little green circles) to the screen led to less webgl
calls which solved the smoothness problem.
Webgl api calls are costly. Maybe a a way to reduce the number of calls in
my case could have been to use a geometry shader to instantiate multiple
foo
I am guessing your viewGrid function is slowing your code down. This
function is creating a new mesh and passing it to the GPU on every
animation frame.
The solution is to make sure your WebGL.Drawable (line 465, where it says
"GL.Lines gridPoints") is a constant. So extract that into its own
top-
Hello everybody,
I am working on cloning Agar.io (https://agar.io/) using functionnal
languages.
Everything was going well except that my cell movements are not very
smooth.
I first blamed the network connection, but after hacking a standalone
front-end it seems like Elm might have something