I have managed to reduce the memory usage of VSH Menu from 30MB to only 4MB + 64K...
The screenshot function now uses only
*64KB* (1 page of 64KB), although it could be reduced even more up to 14KB (8KB frame line buffer + 6KB bmp line buffer) using arrays.
The initial heap for the background and canvas was 16MB, but only 4MB is needed. So the total memory reduction is ~26MB.
This is the newest blitting.c:
http://aldostools.org/temp/test/blitting.c
Here is the complete source code of webMAN MOD 1.43.11 updated the new screenshot code:
http://aldostools.org/temp/test/webMAN_MOD_1.43.11.rar
VSH Menu for webMAN v1.0 (updated)
http://aldostools.org/temp/test/wm_vsh_menu.sprx
[MENTION=161]Matsumot0[/MENTION] [MENTION=1506]Dino05[/MENTION] [MENTION=48]littlebalup[/MENTION]