Re: SuperDevMode and same origin policy

2013-03-04 Thread Harold Comere
Hi Thomas, Thanks for you answer. Following your suggestion ( new Image(myImageResource) ), there is no more security error :) All my textures are loaded but are almost empties. According to WebGLInspector all textures have size 1x1 with a transparent pixel. It looks like that the

SuperDevMode and same origin policy

2013-03-03 Thread Harold Comere
Hi all, I am using super dev mode and i have an issue, i think,, with same origin policy. I have a ClientBundle containing many ImageResource which will be used as WebGL textures. To load those images i do : Image image = new Image(myImageResource.getSafeUri().asString();

Keyboard events focus and preventDefault()

2013-01-21 Thread Harold Comere
Hi all, I have a Canvas element listening for keyboard and mouse events. To avoid browser default behavior while a mouse drag, i use preventDefault on mouse down end mouse move event. If i do that, the canvas will not receive anymore keyboard events ... I guess that is a focus story, but i have

Static function and garbage collector

2012-10-13 Thread Harold Comere
Hi all, I am working on an app doing some WebGL stuff, so the application does lot of calculations at high frequency and so i notice some slowdowns due to the garbage collector. I am trying to reduce as much as i can those slowdowns by two ways : - Reuse of objects - Reduce number of objects.

Re: Web workers

2012-09-13 Thread Harold Comere
Hi Derek, Thanks for the advice. I tried to put var $wnd= $self but what about var $document ? if you have some time to check your code, it is welcome :) Regards, Harold 2012/9/10 Derek derekad...@gmail.com I'd need to look at my code again (not convenient to do right now), but I recall

Re: Web workers

2012-09-13 Thread Harold Comere
Hi again, Your problematic should give headache :-p In this case i always choose to rewrite the library by myself. I think this saves lot of time in the long term. Btw, I have modified the DedicatedWorkerTemplate.js as you wrote but this does not make any change to the generated worker script

Re: Web workers

2012-09-10 Thread Harold Comere
Hi Derek, As i have a lot of JSNI calls, i do not use the dev mode. Super dev mode is far more suitable ! Btw, i still have issue with my worker because after GWT compilation, the generated script contains window and document variables which are not defined in the worker scope, so i get an error

Web workers

2012-09-08 Thread Harold Comere
Hi all, Does anyone have used web workers via GWT ? I have tried to use web workers looking at speed tracer code : http://code.google.com/p/speedtracer/source/browse/#svn%2Ftrunk%2Fsrc%2Fclient%2Fui%2Fsrc%2Fcom%2Fgoogle%2Fgwt%2Fwebworker%253Fstate%253Dclosed But i did not succeed to launch my

Re: ImageResource loading

2012-09-03 Thread Harold Comere
central widget already defined, the super dev mode throws a security error... Any idea ? Thanks for your attention, Regards, Harold 2012/8/31 Harold Comere harold.com...@gmail.com Hi all, I have a ClientBundle containing one ImageResource. Then i create an Image from this ImageResource : Image

ImageResource loading

2012-08-31 Thread Harold Comere
Hi all, I have a ClientBundle containing one ImageResource. Then i create an Image from this ImageResource : Image img = new Image(myImageResource); I set on the image a LoadHandler and ErrorHandler to manage loading events. To launch the image loading, i have to attach the image to the

finalize()

2012-08-24 Thread Harold Comere
Hi all, I can not find the info on the web but : Does finalize() method works properly after gwt compilation ? Regards, Haroldli -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: finalize()

2012-08-24 Thread Harold Comere
Hi, Thank you for answers ! I am using GWT for 3D purpose with WebGL. When i am destroying an object from the 3D scene, i have to free associated webgl objects to manage GPU memory. Some webgl objects are shared between many objects, so i need to destroy the gl objects only when they are not

JSNI and method pointer

2012-08-16 Thread Harold Comere
Hi all, I have a small JSNI method calling a javascript method. public native void requestAnimFrame() /*-{ window.requestAnimationFrame( ); }-*/; but window.requestAnimationFrame takes a function pointer for parameter as a callback. So i need to give as parameter of the JSNI method

Re: JSNI and method pointer

2012-08-16 Thread Harold Comere
On Thu, Aug 16, 2012 at 1:36 PM, Harold Comere harold.com...@gmail.com wrote: Hi all, I have a small JSNI method calling a javascript method. public native void requestAnimFrame() /*-{ window.requestAnimationFrame( ); }-*/; but window.requestAnimationFrame takes

nullMethod and performances

2012-08-02 Thread Harold Comere
Hi all, I have noticed that with firefox almost 8% of the runtime time is in nullMethod function. What does mean this nullMethod and what does generate calls to it ? Thanks for your attention. Regards, Harold -- You received this message because you are subscribed to the Google Groups

Read file issue

2011-03-03 Thread Harold Comere
Hi all, I have some difficulties to find out how to read a text file with gwt 2.2 ... The only thing i have found about it is anyone saying on a forum that it can be done using RequestBuilder, but his example doesnt want to compile, cant fin Method.GET ... new RequestBuilder(Method.GET,

Firefox 4.0b12 and gwt 2.2.0

2011-03-02 Thread Harold Comere
Hi all, I am under windows 7 64 bit, trying to launch any web app with GWT 2.2.0 under minefield ( firefox 4.0b12 ) and firefox crash with this exception : The server is running at http://localhost:/ Exception in thread Code server for test from Mozilla/5.0 (Windows NT 6.1; WOW64;

Re: Overlays and Hosted mode

2011-02-10 Thread Harold Comere
Hello, Thank you for your replies ! So i uderstand that hosted mode doesnt seem really suitable with real time 3D applications in a html5 canvas using WebGL, resquesting thousands of overlayed functions calls per second =/ Also for debugging purpose, it wont be possible to run the whole

Overlays and Hosted mode

2011-02-09 Thread Harold Comere
Hi all, I have some perf issues in hosted mode using javascript object overlays. I am doing bindings for WebGL objects using gwt 2.1.1, for exemple i have the overlayed WebGLRenderingContext : import com.google.gwt.core.client.JavaScriptObject; public class WebGLRenderingContext extends

Re: Keyboard event issue with Minefield 4.0b10pre

2011-02-08 Thread Harold Comere
Hi all, Me again ... So, no idea on what is wrong with my piece of code under firefox 4.0 ? =/ Regards, Harold 2011/2/6 Harold Comere harold.com...@gmail.com Hi all, I have started two weeks ago to use GWT 2.1.1 and so have some newbie issues, but i havnt found any answer in FAQs

Keyboard event issue with Minefield 4.0b10pre

2011-02-07 Thread Harold Comere
Hi all, I have started two weeks ago to use GWT 2.1.1 and so have some newbie issues, but i havnt found any answer in FAQs and tutotials so i m there ! Well, actually my web application is pretty simple, it contains only one html5 canvas which contains 3D features thanks to WebGL. I'm trying to