Movement against float.init being nan

Mike Parker aldacron at gmail.com
Sun Aug 21 06:23:39 UTC 2022


On Sunday, 21 August 2022 at 03:26:55 UTC, Walter Bright wrote:
> On 8/20/2022 6:19 AM, Hipreme wrote:
>> Drawing with float is required a lot on modern drawing API.
>
> I find this surprising. My experience with floating point 
> coordinates is you can never quite get the pixels aligned, due 
> to rounding problems.

Graphics APIs have been using floating point for decades now. 
GPUs are optimized for it. You'll still see 2D APIs around now 
and again with an integer-based public API, but internally 
they're sending floats to the GPU.


More information about the Digitalmars-d mailing list