Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ctx support to bl_bench #7

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

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

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