[OpenJDK Rasterizer] Fwd: Re: Fwd: RFR: Marlin renderer #3
Laurent Bourgès
bourges.laurent at gmail.com
Fri Jul 31 07:20:14 UTC 2015
Jim,
One stupid question related to accuracy:
- should we have 2 distinct rendering pipelines : 1 based on floats (for
speed), 1 using doubles for increased precision and accuracy ?
Maybe we could use the java2d rendering hint QUALITY to decide which
pipeline to use... however this hint is for now not given in the
AATileGenerator interface.
> With respect to double precision usage, I think that x1,y1,x2,y2 will be
float and I would be hard pressed to recommend revisiting that.
I agree I want to implement a double-precision renderer for a while as
recent cpus (64bits) may be faster using doubles ... and it would be more
precise for stroker computations...
Do you want me to try ? I can duplicate classes (Renderer, Dasher, Stroker)
with float and double variants.
For now, I can use a system property to choose the pipeline variant.
Of course I will do it later:
I can create JBS bugs to maintain a TODO list.
Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/graphics-rasterizer-dev/attachments/20150731/5aed0700/attachment-0001.html>
More information about the graphics-rasterizer-dev
mailing list