BruceSherwood / glowscript

This repository has been moved to https://github.com/vpython/glowscript
50 stars 17 forks source link

Slowdown due to "too many WebGL contexts" #191

Open BruceSherwood opened 5 years ago

BruceSherwood commented 5 years ago

In the offline version of GlowScript VPython (the GlowScriptOffline zip file), after running many programs execution slows down, apparently due to there being too many WebGL contexts. The offline version should do what the online version manages to do, which is that when you end execution the WebGL context needs to be terminated. See untrusted/run.js and lib/glow/WebGLRenderer.js.