Repository navigation
RGB565 SIMD (blend,...) #10
BitsForPeople
started this conversation in
Ideas
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
Hi :)
As hinted at on reddit, I have made some helper routines for RGB565 processing via the S3's PIE/SIMD instructions which you may want to give a try for their performance gains:
https://github.com/BitsForPeople/esp-bits-and-pieces/blob/b04a1481d0ea70b7a6edcca04d89ad5878887d4a/esp32-s3/rgb565/rgb565_s3_simd.hpp#L109
The idea is to use
rgb565::RGBVeclikeThis way, blending 16+16 RGB565 source pixels into 16 RGB565 destination pixels takes about 90-100 CPU clock cycles - a ~5x speed-up vs. a scalar implementation of the same.
If you give it a try, I'd be interested to hear about any performance differences you get.
All reactions