SRAM to tackle lack of RAM?
Posted: Mon Mar 21, 2022 5:49 pm
Hello,
I have tried different methods to implement undo feature in LIZARDPAINT(.com, please give it a try).
One requires a little bit more RAM than what is available (I store canvas tiles values in u32[8]).
Even after I adapted DMA buffer size as well as sprite init to the bare minimum.
My solution could work with a smaller canvas, but I believe this would be detrimental to user.
So... I wondered if I could use SRAM to store what I need.
I would need to write info there as often as user draws something.
Is it a good idea? Would not it imply a significantly faster battery wear?
I have tried different methods to implement undo feature in LIZARDPAINT(.com, please give it a try).
One requires a little bit more RAM than what is available (I store canvas tiles values in u32[8]).
Even after I adapted DMA buffer size as well as sprite init to the bare minimum.
My solution could work with a smaller canvas, but I believe this would be detrimental to user.
So... I wondered if I could use SRAM to store what I need.
I would need to write info there as often as user draws something.
Is it a good idea? Would not it imply a significantly faster battery wear?