Need to shrink VGA64_TMPEngine
lmclaren
Posts: 104
Hi,
I am using http://obex.parallax.com/objects/655/ for the display on my Coffee Roaster.
I don't use any cursors or mouse pointers.
Is it possible to remove the mouse / pointer functionality and reduce the memory footprint?
I am completely out of memory and need to try to recover some, as the video uses the most out of all the objects I am starting with it.
I have had a good look but it seems to be tightly integrated and I don't understand how it works.
Lee
I am using http://obex.parallax.com/objects/655/ for the display on my Coffee Roaster.
I don't use any cursors or mouse pointers.
Is it possible to remove the mouse / pointer functionality and reduce the memory footprint?
I am completely out of memory and need to try to recover some, as the video uses the most out of all the objects I am starting with it.
I have had a good look but it seems to be tightly integrated and I don't understand how it works.
Lee
Comments
thanks
Lee
Note that bst chokes on #-1 in the CONstant section, just replace it with #$FFFFFFFF.
BST helps a lot, I would still like more though .
Am I right in thinking that the mouse / pointer code would not be removed from the VGA object even if it was not being used, by the looks of things it will still be called to display the cursor, even though it is off the screen.
Lee
What one could do (haven't checked yet) is to overlay screen buffer and cog image so you get an extra ~280 longs worth (PASM image is only needed once).
Change the variable section to something like:
And the start of the cog image to: The only drawback is that you can't restart the driver without reboot from EEPROM.
I will test in the morning. Bst pulled a third out of the memory usage. I am going through and optomising the code, removing some waste. Got a bit lazy and was using float to div by 100 and display with a decimal point.
best regards
Lee
Worked well.
best regards
Lee