Speeding Up Frame Rates For DHTML Animation in Win98 - DHTML Lab | 8
Speeding Up Frame Rates For DHTML Animation in Win98
A Case Study
Core Problems and Limitations With Standard and Multithread Scripting Methods
Whether one uses standard single thread techniques or the multithread techniques illustrated here, stability problems will occur. They can start rough, then smooth somewhat, but unwanted accelerations, decelerations and jerks remain. Some runs are worse than others. Setting the window object offScreenBuffering property to true doesn't help much. Unlike IE which is multithreaded, NN is single threaded so its poor performance isn't surprising with the multithreaded scripts. However, even though IE does accommodate these methods much better, its performance isn't as uniform as it could be and with "tri-threaded" codes is just unacceptable.
The multithreading model for IE is basically "apartment" threading but the scripting engines implement a limited threading, independent from the rest of the environment . The setTimeout() and setInterval() methods provide the coarse rudimentary capability for this. This limited threading ability could easily account for IE's less than optimal behavior with two threads and poor behavior with more threads than that.
Produced by Mark Szlazak andAll Rights Reserved. Legal Notices.
Created: July 11, 2000
Revised: July 11, 2000