Ok here's the deal. I downloaded a cool DHTML animation but can't remember where, it may even be a testase for mozilla DHTML performance, I don't remember. Anyways, I uploaded it on my site here : http://pages.infinit.net/wcg/dhtml/duplex.html Other files that came with the package are all also uploaded to my site and include http://pages.infinit.net/wcg/dhtml/style.css http://pages.infinit.net/wcg/dhtml/domlib.js http://pages.infinit.net/wcg/dhtml/duplex.js http://pages.infinit.net/wcg/dhtml/global.js http://pages.infinit.net/wcg/dhtml/duplex_1.gif http://pages.infinit.net/wcg/dhtml/duplex_2.gif http://pages.infinit.net/wcg/dhtml/duplex_3.gif
Performance was very bad on that particular animation until last month, when it began to run very smoothly with almost nu CPU usage. That's what made me decide to put it on my site, and I even added the mention that Mozilla's DHTML performance was improved. *Note that I know nothing of DHTML programming, I can't even tell if this is really DHTML.* Now the problems begins. I'm on Win98SE. The background of my site is black, so I thought to load the duplex.html file in composer (using Mozilla 20020302 trunk build) to change the background color of the page to black (before understanding that I could do it by editing styles.css, that is) and I saved the file. Guess what, the performance regressed to what it was before the performance increase I noticed last month, with almost 95-100% CPU usage (I have a duron 1000 BTW w/256 mb RAM). What's even more confusing is that I did overwrite the duplex.html file I just saved with the un-tampered files I kept as a backup on CD and the performance wasn't restored. I really don't understand this one. What I did to try to solve my problem include (and obviously nothing worked... :() 1. Tried with an older mozilla build (feb 22th), fully deleting the previously installed build (I use the zip files, not the installer) 2. Tried with a newer mozilla build (march 4th). 3. Deleted XUL.mfl file, panacea.dat and a few .rdf files in my profile directory. Also deleted registry.dat to no avail. 4. As I said above, replacing the files I modified with the original files I had on CD. 5. Tried with a new mozilla profile (I should have thought about it before, it probably covers step 3, but should also take care of changes that could have been made to other files, like prefs.js. 6. Restored my Windows registry to the state it was a few days ago. Nothing I tried worked. Can someone (preferably with Win98 and a recent mozilla build) go to http://pages.infinit.net/wcg/dhtml/duplex.html and tell me if the performance is smooth. I feel something changed in my PC and but can't find what. Maybe someone with programming knowledge could also check the source and try to find the problem. I really don't understand why it was running so smooth and all of a sudden it sucks all CPU cycles, especially with all I did to get rid of the problem. Any help would be greatly appreciated, Regards, Martin
