Posted: 11:56am 24 Feb 2025 |
|
|
|
Hi Martin,
The issue with Kong on 6.00.02b11 is most likely the sheer size of the heap/free RAM. I wrote a simple "play modfile, play stop, play flac" and printed heap size. You can clearly see that 6.00.02 has 4kbyte less heap. And AFAIK, there is no memory leak, memory is returened with PLAY STOP.
v5.09.00rc5 > RUN 101632 heap 76800 play mod 101632 play stop 58368 play flac 101632 play stop 76800 play mod 58368 play stop:play flac
v6.00.02b11 RUN 97536 4kbyte Heap less 72704 97536 54272 97536 72704 54272
That is also shown if you type "memory" in both PicoMite versions (124k versus 128k RAM).
That should at explain why Kong does not run on 6.00.02. Playing FLAC uses 42kbyte heap Playing MOD uses 24kbyte heap
So playing FLAC may not be the best option here. Is there any way you can convert the FLAC to MOD ?
Volhout
EDIT: so PLAY FLAC combined with FRAMEBUFFER L uses 80kbyte RAM/heap of 97 available in 6.00.02b11. Only thing to become more efficient is use fewer strings, fewer arrays (these eat heap) and use more normal variables (are in the 28k reserved RAM area, not heap). Edited 2025-02-25 01:17 by Volhout |