Hi Peter,
I was going to implement something like this, I noticed in the
incubator there's a progress bar widget. I was going to show the user
the progress as the table or canvas is being built.
As for continuing testing, here are some more updates:
1) I tried implementing the 200 x 200 rectangle draw with VML
natively, the performance was better but not by much. Still takes
about 30 seconds to generate, and then the browser stalls when
returning focus.
2) In the excanvas discussion group, it was recommended I try their
silverlight branch. This indeed did improve the performance a lot.
With silverlight and IE 8 beta installed, the 200 x 200 rect draw time
is about 7 seconds, not too bad. Still a far cry from firefox/safari
performance with the <canvas> tag, but better than 2 minutes.
I wonder if the silverlight excanvas branch can be incorporated into
the GWTCanvas widget? Right now I believe it's set to pick up and use
silverlight if detected on the user's machine.
I think in the end though I'm just going to require users to use
firefox or safari or opera for my application, as explorer seems to be
a complete disaster! At least I know that when IE 8 launches, most
users will use silverlight and I guess that will be an ok solution for
those users,
Thanks for any more ideas/comments,
Mark
On Apr 23, 3:28 pm, Peter Blazejewicz <
peter.blazejew...@gmail.com>
wrote:
> hi Mark,
>
> GWT has implemented concept of executing heavy code in deffered/
> timeline-like based way in IncrementalCommand,
> you can use IncrementalCommand to perform heavy part of code that are
> related to either parsing data or updating user elements (e.g. dom
> manipulation),
> That is a command you are looking for, it will improve performance on
> IE or at least will make it more user friendly and responsible: you
> can show progress bar "building game" when your loop is executing in
> IExplore,
http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/g...
> (and samples on group)
>
> regards,
> Peter
>
> > > > > > On Wed, Apr 23, 2008 at 6:47 AM,markww<
mar...@gmail.com> wrote:
>
> > > > > > > Ok I finally got Oliver's implemenation running in a sample app. It
> > > > > > > seems like the speed for internet explorer is somewhat better, but
> > > > > > > still slow enough for most users to give up. I tested filling 50 x
> > > > 50
> > > > > > > rects, and it took about ~34 seconds to complete. It's sad because
> > > > > > > firefox and even safari on my iphone can do the same thing in under
> > > > a
> > > > > > > second! Why didn't microsoft just implement the canvas in the first
> > > > > > > place? Ugh.
>
> > > > > > > Can anyone confirm the speeds listed above? If they're accurate,
> > > > any
> > > > > > > other options? I think I pretty much exhausted all methods except
> > > > > > > hardcoding a 50 x 50 table into the module html page then accessing
> > > > it
> > > > > > > via the DOM.
>
> > > > > > > Thanks,
> > > > > > > Mark
>
> > > > > > > On Apr 22, 3:40 pm,markww<
mar...@gmail.com> wrote:
> > > > > > > > I gave the GWTCanvas class a try from the GWT Incubator project.
> > > > To
> > > > > > > > render 200 x 200 filled rects on my laptop, it took:
>
> > > > > > > > Internet Explorer 7:
> > > > > > > > About 5 minutes and you'll get prompted by the browser to
> > > > stop
> > > > > > > > since the script is 'making the browser run slowly'.
>
> > > > > > > > Firefox:
> > > > > > > > ~2 seconds
>
> > > > > > > > iPhone Safari
> > > > > > > > ~2 seconds but quits half way through filling the rects with
> > > > no
> > > > > > > > error message being reported.
>
> > > > > > > > It would be great to give your (Oliver) project a try since you
> > > > say
> > > > > > > > the IE performance is better than the Incubator's implementation,
>
> > > > > > > > Thanks,
> > > > > > > > Mark
>
> > > > > > > > On Apr 21, 2:48 pm,markww<
mar...@gmail.com> wrote:
>
> > > > > > > > > Hi Oliver,
>
> > > > > > > > > I imported the source files directly into my project for now
> > > > (still
> > > > > > > > > can't figure out how to import jar files properly). Compilation
> > > > goes
> > > > > > > > > fine, but trying to create a new Canvas instance fails. Here's
> > > > the
> > > > > > > > > output I get:
>
> > > > > > > > > [ERROR] Uncaught exception escaped
> > > > > > > > > com.google.gwt.core.client.JavaScriptException: (TypeError):
> > > > Object
> > > > > > > > > doesn't support this property or method
> > > > > > > > > message: Object doesn't support this property or method
> > > > > > > > > number: -
2146827850
> > > > > > > > > at
> > > > com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> > > > > > > > > 487)
> > > > > > > > > at
>
> > > > com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:
> > > > > > > > > 275)
> > > > > > > > > at
>
> > > > com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.jav ��a:
> > > > > > > > > 121)
>
> ...
>
> read more »