The problem that took him 5 years to fix in C++, I solved in a minute with D
Guillaume Piolat
first.last at gmail.com
Sun Mar 20 20:27:44 UTC 2022
On Sunday, 20 March 2022 at 20:00:22 UTC, Ola Fosheim Grøstad
wrote:
> Sounds nice, so it is all CPU and no GPU if I didn't
> misinterpret what you wrote.
Yes. Using the GPU is not that much of a win since for text and
curve you'd end up sending to the driver large amounts of
vertices, and the compability headache that the GPU cause are
endless. OpenGL is deprecated on macOS, so you need a layer on
top, so you need a shader language... it quickly gets hairy.
> I always assumed they used pre-rendered images for fancy
> widgets like knobs and sliders.
A lot of them do, the equivalent with PBR is have one image and
rotate this, and recompute shadows and reflections from there ;
it drastically lowers memory requirements and image decoding time.
> Maybe this can be turned into a generic UI library for D? Or is
> it more geared towards smaller user-interfaces like those
> commonly found in audio-plugins?
It is very specialized and unsuitable for generic UI, where you
don't have a reference to thr UX of hardware racks.
More information about the Digitalmars-d
mailing list