Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
optimize gamma setting #1174
To allow fine control over antialiasing level we allow users to set
However, it appears the gamma setting is taking up a non-trivial amount of time:
The gamma array is not free, which is why AGG by default only calculates it once in the constructor:
Perhaps we could expose a public setter that can trigger returning to the default gamma without having to recalculate based on a function?
did some light perf testing against above changes: I rendered all of processed_p at z0. Rendering with a single