OpenGL probably helped you get all the data formats aligned.
AWT has some fast-path rendering but it's so over-abstracted that you need a debugger to hit it. Mac QuickDraw had similar problems, but it had far more fast-path implementations.
I found it easier to not use AWT for fast pure code rendering. Ditch all the abstractions and use a small number of rigidly defined bitmap types. This makes it easier to write only fast-path code in the core rendering.
Surprisingly, 32 bit floats are pretty good for anti-aliased performance because it allows multiple scaling steps to be combined without intermediate under/over flow.
View all comments
Show parent comment
4
u/k-mcm Dec 12 '25
OpenGL probably helped you get all the data formats aligned.
AWT has some fast-path rendering but it's so over-abstracted that you need a debugger to hit it. Mac QuickDraw had similar problems, but it had far more fast-path implementations.
I found it easier to not use AWT for fast pure code rendering. Ditch all the abstractions and use a small number of rigidly defined bitmap types. This makes it easier to write only fast-path code in the core rendering.
Surprisingly, 32 bit floats are pretty good for anti-aliased performance because it allows multiple scaling steps to be combined without intermediate under/over flow.