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) _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal