-
Notifications
You must be signed in to change notification settings - Fork 4
Configurable framebuffer size at compilation time #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Oh, it also requires nightly, in |
|
It fails at this rect.intersection if, but not error is returned Oh, nevermind, let me test further then it still draws crap, here is a more refined example: the framebuffer needs to be divisable by 8, do we just make some asserts about it? And well, it still doesn't work, at least it outputs garbage to the screen now |
|
framebuffer flush could look like that now: pub fn flush<C: IsDisplayConfiguration>(
&mut self,
display: &mut Display<C>,
x_lo: i16,
y_lo: i16,
) -> Result<(), Error<C>> {
display.draw_image(
&self.framebuffer,
x_lo,
y_lo,
x_lo + FB_WIDTH as i16,
y_lo + FB_HEIGHT as i16,
)
}but it still doesn't work... |
|
so it looks like you are changing so that framebuffer is smaller to make it possible to update smaller screen areas What if instead the FB detected the area that was modified and itself computes the partial update area that must be used? |
|
That was the idea I had originally but I dunno if it fulfills your usecase |
I don't have 5kb of memory for 200 * 200 / 8, in fact its 70% of the total memory I have :D I tested further, it works when i do the size 200 200 and at 0 0 but otherwise it gets messy, somewhere the math is done wrong |
|
Oh boy alright lol, I'll take a look at this when I am able to and figure out what's up |
|
Thanks, I looked into it but I haven't found anything |
|
Oh |
|
very unsure about the hibernation things, but it works |

But it doesn't work?
Small hacky code I have: