• Just looked at this and E.toString should return the backing string if it exists (you could check with trace(buffer) what it actually is I guess.

    Is there a reason you're doing E.toString(fnt.asImage().buffer) vs just E.toString(fnt.buffer)? I'd have hoped that the last one there would have worked better (I don't think so, but it is possible that asImage ends up reallocating the buffer).

  • Is there a reason you're doing E.toString(fnt.asImage().buffer) vs just E.toString(fnt.buffer)

    no, just took it from your example in post #12, will check if it makes difference, I think I tried both. I have like 900 out of 2600 variables still free, with e.g. 176x176x4bit framebuffer allocated and also some Inline C code so there is memory but can be fragmented. This is 64x40 font so relatively large but even when taking just number digits (10 letters) E.toString often fails in this case. Will check what trace does, thanks.

About

Avatar for Gordon @Gordon started