4 ms·
Checking every pixel is generally faster on modern hardware due to SIMD! Of course you’ll need to clip properly. There are some pathological cases, like a thin
by vardump 2y ago
Checking every pixel is generally faster on modern hardware due to SIMD! Of course you’ll need to clip properly.
There are some pathological cases, like a thin long almost diagonal triangles. But those (rare) cases can be handled too by some subdivision clipping.
- randomNumber7 2y agoI get that a GPU is doing it like that, but are you really sure this is the better algorithm for cpu?
- vardump 2y agoYes, because you can handle 8 or 16 pixels in parallel with SIMD. You have also less branches which helps a lot.