Saturday, February 4, 2017

float[] is super slow

Hi, 

the problem is that it is too slow compare to Float32Array.
Especially it is super-slow it everything except chrome: FF, IE\EDGE.

More then that, it produce tonns of garbage (in FF and EDGE) working with large images: 
Here I wrote some float[] code to emulate water surface
https://cospac.es/nfac

Also, it is super hard to calculate large terrain, geometry arrays, e,t,c.

There is an ugly workaround (which breaks portability, yes I write portable client code (iOS, Android)):

public static native float[] createFloatArray(int size) /*-{
return new Float32Array(size);
}-*/;

Can google GWT team make a compiler setting or option to use platform arrays instead of JsArray ?
This is a really huge performance impact !

Thanks

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment