Login  Register

Re: Graph Type Rendering Updates (Graph UI)

Posted by Sven Gothel on Apr 07, 2023; 6:31pm
URL: https://forum.jogamp.org/Graph-Type-Rendering-Updates-Graph-UI-tp4042173p4042410.html

Thank you .. will compare them a bit more.

If I could find a streamlining (non-branch) max() and abs() function,
it would help to make it more simd alike.

abs(): But Java's float<->int bits is a native methods and kills performance,
so no pure java bitpattern for sign. Using the Math.abs() b/c it might have an intrinsic.

Math.max() is much slower, so no intrinsic and hardcoded.

...

Re mul:
Besides we are using floats, I also tuned the number of temporaries.
In Matrix4f we have a less, as in less is a bit faster.
Its sort of useless witch hunting, I know - the optimization of the build-in is far less fancy than for gcc or llvm these days.
But .. its OK'sh.

Re invert
Ardor doesn't scale the input by 1/max, hence there could be an overflow?
Yeah, also a double thing perhaps :)

Avoiding double precision .. maybe no issue these days on big CPUs .. but embedded is still a thing for me.

...

Whatever, most important was that I didn't inject a performance regression, we are faster than before - so all good.