Click to See Complete Forum and Search --> : 3D DHTML-Qube: Mozilla terribly slow


SnowCrash
12-02-2003, 09:23 AM
I created a rotating cube with JavaScript, that is quite nicely animated in IE6, but terribly slow in Moz1.5. Any suggestions how to improve speed ?

3D Cube (http://www.speich.net/computer/3d.htm)

Gollum
12-05-2003, 05:03 AM
Impressive!

Sadly though, your technique is pushing into the boundaries of where JavaScript was not designed to go. JavaScript was never intended to be a graphics oriented language.

Mozilla has never had a great track record playing DHTML on hundreds of small HTML elements (tables, DIVS, etc). It's probably refreshing the screen or recalculating the document or something each time you 'paint' a pixel.

Nice effect in IE though :D

SnowCrash
12-05-2003, 08:34 AM
My intention was just sort of a proof of concept and to show what's possible with JavaScript. I also wanted to learn the basics of 3D in a language I knew. But nonetheless I would like to know how to increase speed in Mozilla (supress refreshing the screen or recalculating the DOM) if possible at all.