Closed GoogleCodeExporter closed 8 years ago
Forgot to mention, this patch reserves a 3KB page draw buffer (8 rows per page
* 128 pixels per row * 3 bytes per pixel) in SRAM.
That entails 16 total pages (128 rows / 8 rows per page), thus the display must
be drawn 16 times to render a single screen of imagery. That can be slow.
Decreasing the page buffer size below 3K will save memory but add more pages,
thus incurring more passes through the drawing functions, and make drawing
slower. Increasing the page buffer size quickly consumes lots of memory.
To compensate, the extras patch defines a u8g_DrawFullScreenBitmapP() function
that will render a full-screen image, but only having to draw it once (instead
of once per page, or 16 times in the current configuration). That improves the
rendering speed a lot for that specific use case.
Original comment by mik...@gmail.com
on 22 Jan 2014 at 3:37
I probably will remove support for any true color devices from u8glib in the
future.
Instead there will be a true color library "ucglib" which will take over fonts
and functionality, but will not require the picture loop. Ucglib will also not
require any buffer. Speed will be also optimized for true color displays.
Ucglib already supports 18 bits per pixel.
Ucglib is here: http://code.google.com/p/ucglib/
Drop me a note if you want a prerelease.
Original comment by olikr...@gmail.com
on 22 Jan 2014 at 6:01
Very cool. Are you doing random pixel addressing and drawing directly to the
display? Seems like it would make sense for hardware that doesn't pack many
pixels into a single write, though (for the SSD1351 at least) there would be
command overhead in addressing the data randomly rather than sequentially.
Is the prerelease in hg?
Original comment by mik...@gmail.com
on 22 Jan 2014 at 9:43
Yes, all data is written directly to the display. There is some optimization:
Vertical and horizontal lines are written without position update. Also text
output is optimized so that only x or y is updated, but no both. Latest version
is in hg.
Original comment by olikr...@gmail.com
on 22 Jan 2014 at 11:00
i will close this...
Original comment by olikr...@gmail.com
on 24 Jan 2014 at 8:54
Original issue reported on code.google.com by
mik...@gmail.com
on 22 Jan 2014 at 3:07Attachments: