diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-07-10 14:40:01 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-07-10 15:15:17 -0700 |
commit | 02745f14a6b534f7a704ef3c512c9a0b4c999665 (patch) | |
tree | 5b9aa5b42981a8a2b962bca4a824eb5b506859dd /m4 | |
parent | 9f82732e1ece48772d0b1a532a69ff739c9dde16 (diff) |
til_fb: fast-path til_fb_fragment_clear() a bit
What this really should have is a general memset32()
implementation, but for now it's a small improvement at least for
clearing since that's known to be a 0-pixel case where memset()
is applicable.
memset() isn't usable for actual RGBA pixels since it operates
strictly on bytes. There's some hacks for using memmove() to get
closer where you store the first four bytes, then memove the
start of the buffer to the remaining, doubling the size of the
move each time for log(n) calls to memmove. Maybe that makes
sense as a stop-gap for the general case, it needs
implementing+benchmarking first.
This commit is dead simple though and an obvious little FPS gain
for clearing.
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions