mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 14:05:15 +00:00
Three optimizations are applied: 1. If the list of vertices to clip is empty, return immediately after clearing the output list. 2. Remember the previous vertex instead of recalculating whether it is within the clip plane. 3. Instead of copying and swapping lists around, operate on the input and output lists directly. This prevents a lot of `malloc`/`free` traffic as a result of vector assignments. This takes the clipping code CPU load from 3.9% down to 1.8% for Quake 3 on my machine. |
||
---|---|---|
.. | ||
Buffer | ||
AlphaBlendFactors.h | ||
Clipper.cpp | ||
Clipper.h | ||
CMakeLists.txt | ||
Config.h | ||
Device.cpp | ||
Device.h | ||
Image.cpp | ||
Image.h | ||
PixelQuad.h | ||
Sampler.cpp | ||
Sampler.h | ||
SIMD.h | ||
Triangle.h |