Aha! Yes, drawing a small novel on to your 7x7 LCD screen would definitely slow things down :)
It is the actual drawing of the characters to the bitmap that takes a while - I don't believe I ever skipped drawing characters if they were offscreen, because I thought that would be quite rare.
To speed it up, I'd try and split it into smaller chunks. To be honest even calling stringWidth on that amount of characters each frame will be making things slightly slower than they need to be.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Aha! Yes, drawing a small novel on to your 7x7 LCD screen would definitely slow things down :)
It is the actual drawing of the characters to the bitmap that takes a while - I don't believe I ever skipped drawing characters if they were offscreen, because I thought that would be quite rare.
To speed it up, I'd try and split it into smaller chunks. To be honest even calling
stringWidth
on that amount of characters each frame will be making things slightly slower than they need to be.OR I just fixed it, so if you use one of the cutting edge build at http://www.espruino.com/binaries/travis/2cdc51943388fe3d1944936bf02ad7fae9e0258c it'll be a lot faster.