Port upstream rendering optimizations and MemAvailable fix#4
Merged
Conversation
cafedomingo
force-pushed
the
port-upstream-fixes
branch
from
February 23, 2026 23:11
4b736b9 to
bc6b653
Compare
Buffer character pixels in memory and use burst I2C transfer instead of pushing one pixel at a time. Use a stack buffer (832 bytes max) instead of malloc/free per character. Remove redundant SYNC_REG call from lcd_write_string. Fix off-by-one clipping in lcd_fill_rectangle and wrong dimension calculation in lcd_draw_image. Adapted from UCTRONICS#27 with endianness fix (the original PR stores native uint16_t values but i2c_burst_transfer expects big-endian byte order) and stack buffer simplification. Co-authored-by: slyglif <10196904+slyglif@users.noreply.github.com>
cafedomingo
force-pushed
the
port-upstream-fixes
branch
from
February 23, 2026 23:20
bc6b653 to
dfe4f97
Compare
MemAvailable includes reclaimable cache and buffers, giving a more accurate picture of actually available memory. Adapted from UCTRONICS#17 Co-authored-by: mobejm <4407468+mobejm@users.noreply.github.com>
cafedomingo
force-pushed
the
port-upstream-fixes
branch
from
February 23, 2026 23:24
dfe4f97 to
8e62446
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lcd_fill_rectangle, fix wrong dimension calc inlcd_draw_imageMemAvailableinstead ofMemFreefor RAM reporting — includes reclaimable cache/buffers for accurate available memoryTest plan
make clean && makebuilds without warnings🤖 Generated with Claude Code