[fpc-pascal] FPC Graphics options?

Marco van de Voort marcov at stack.nl
Thu May 18 17:57:21 CEST 2017


In our previous episode, Graeme Geldenhuys said:
> > I was extremely curious to see if those calls to Floor() were causing it.
> 
>  From memory, I remember trying replacing Floor() with Frac() and even 
> Trunc(), and neither made any difference in the speed.
> 
> So I don't believe it is simply down to the Floor() usage.

FPC/Delphi do high precision rounding. A lot of Delphi gaming uses simple
assembler instructions for rounding.

Note that the profiling from Jon also shows that all targets should be
forced to the same architecture (since 64-bit division seems to be a RDS)



More information about the fpc-pascal mailing list