phetsims / gene-expression-essentials

An educational simulation about how genes work to create proteins.
GNU General Public License v3.0
4 stars 6 forks source link

initial loading of the "Expression" screen takes a long time #28

Closed jbphet closed 7 years ago

jbphet commented 7 years ago

In requirejs mode, the Expression screen (the first screen) takes a long time to load. I used a stopwatch and found it to be around 5.5 seconds on my machine, which is long enough that it feels like something is wrong. We should spend some time profiling an optimizing this.

aadish commented 7 years ago

I tried profiling it and my first inclination is that it is because of drawing dna strands on the screen

When DNA strand is drawn on the screen it takes approx 3.5 seconds on my machine When DNA strand was not rendered on the screen it took less then 60 micro seconds, seems rendering of DNA strand is the cuplrit

aadish commented 7 years ago

Current master version takes 40 micro seconds, closing this issue and further performance related issues are tracked in #55