[OpenJDK Rasterizer] Marlin renderer contribution for review

Jim Graham james.graham at oracle.com
Mon Mar 30 22:45:54 UTC 2015


Hi Laurent,

I'll defer to Phil on any instructions for pushing to the repo in case I 
make a mistake and give bad advice.

On 3/30/15 2:24 PM, Laurent Bourgès wrote:
> Here is my list of ideas to be discussed:
>
> First:
> - improve coordinate rounding ie ceil(x - 0.5) or better ?
> Maybe ceil/floor(float) intrinsics could help but let's discuss that in
> the core-libs mailing list...
> I have found another trick about float rounding:
> http://stereopsis.com/sree/fpu2006.html
> Or you may have other ideas as you did in your JavaFX renderer ?

We might want to consider fixed point in the inner loops and then we can 
bypass the issue entirely.  It would also mean that we'd only need one 
kind of array for storing segments.  The main advantage to using FP is 
if you have a lot of FP math and a lot of integer stuff, then the FP 
math can sometimes hide in the gaps between the integer and logic 
instructions since they can execute in parallel.  But, if you run across 
an expensive FP operation then fixed point might be faster anyway.

			...jim


More information about the graphics-rasterizer-dev mailing list