on
May 25th 2006 at 7:27 pm in General The major rewrite I’m currently busy with now executes BASIC code way faster than before.
Thing is, when I initially wrote the routines that handle the BASIC programs’ execution I ran into the dreaded ‘Unresponsive script‘ error. To work around that — I implemented an ‘execute timer‘ by using the setTimeout( ) routine.
I hadn’t yet tried executing more than one statement from that timer, though. Today I tried that, apparently with success.
So in stead of executing 1 statement, then waiting a few millisecs, and then executing the following statement, it now attempts to execute 1500 BASIC statements per tick. This, together with disabling screen updates while it’s going through these, and updating only the changes lines after, gives a pretty impressive speed increase.
Screen updates are a bit laggy, depending on browser and processor speed, probably…
Check out the current development version, but beware it’s buggy and graphics support’s lacking.
no comments 








