Guru Meditation on Sprite Scrolling. #1724
Unanswered
FerFemNemBem
asked this question in
Q&A - General
Replies: 1 comment
-
The free heap is smaller with the smaller sprite idth which is not what would be expected. I suspect the sprite is too bit so space could not be allocated and so scrolling failed. Post an example sketch that demonstrates the problem. A lower memory consumption approach owuld be to draw one character in a sprite of the screen width, scroll sprite left and then draw the next character etc etc. This would be fast. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a sprite with a long text inside (171 characters) that I want to scroll. The call of
scrollinfo.scroll(-1);
ends in the following "Guru Meditation":
If I shorten the String to scroll to e.g. 57 character everything works as expected.
So this looks to me like there is not enough memory available for that big sprite to scroll.
But - if I print out the available memory in both cases right before calling
scrollinfo.scroll(-1);
:than I can see that there is less free heap in case of the smaller string.
So is this really a memory issue? Is there anything I can try to get the scrolling of the long string working?
Best regards,
FFNB
Beta Was this translation helpful? Give feedback.
All reactions