Skip to content

Conversation

hodefoting
Copy link

@hodefoting hodefoting commented Mar 2, 2024

This adds benchmarking support for ctx which is a highly portable 2D rasterizer, relying on C compilers and auto-vectorization to do heavy lifting.

Performance is highly dependent on the compiler (and compiler flags). Ctx seems to work best with clang in general ~5-10% faster than gcc. For one particular case clang does much better FillRectU bi-linear. Where clang yields code 3-4x faster than gcc.

For building and installing ctx, hopefully the following works:

git clone https://ctx.graphics/.git/
cd ctx.graphics
./configure.sh
CC=clang make -j && sudo make install

@hodefoting hodefoting force-pushed the ctx branch 2 times, most recently from 9c720b0 to 57b6a49 Compare March 3, 2024 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant