robotpy / robotpy-websim

OBSOLETE: Experimental robot simulation html interface
6 stars 1 forks source link

Module code is not efficient #23

Open virtuald opened 9 years ago

virtuald commented 9 years ago

My CPU runs pretty high when running simulation. There's a number of issues that are easily fixable:

You'll note there's a theme here...

virtuald commented 9 years ago

Yeah, we need to fix this. All of my students batteries are getting killed when we run the websim.

amorygalili commented 9 years ago

The DOM elements are cached and the DOM elements don't change unless new data is sent from the server. Not completely optimized, but it should be better now. Let me know if it's still killing your students' batteries.