tmhglnd / mercury-playground

The Mercury live coding environment running in the browser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Executing code becomes slower over time?

tmhglnd opened this issue · comments

commented

When using the editor for a while the evaluation of the code becomes slower and slower causing drop-outs in the audio. What is causing this and can it improved?

commented

Maybe the editor became laggy because the console.log() method was replaced by a method that also adds text to the .innerHTML of an <p> element.

Now in ea6d60c the log is set back to the original log function after loadscreen is done with console.log = console.olog. Maybe this reduces the lag over time?

commented

After some testing this seems now fixed!