Perlin noise benchmark speed

Mattcoder via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 20 11:29:34 PDT 2014


On Friday, 20 June 2014 at 16:02:56 UTC, bearophile wrote:
> So this is the best so far version:
>
> http://dpaste.dzfl.pl/8dae9b359f27

Just one note, with the last version of DMD:

dmd -O -noboundscheck -inline -release pnoise.d
pnoise.d(42): Error: pure function 
'pnoise.Noise2DContext.getGradients' cannot c
all impure function 'core.stdc.math.floor'
pnoise.d(43): Error: pure function 
'pnoise.Noise2DContext.getGradients' cannot c
all impure function 'core.stdc.math.floor'

Matheus.


More information about the Digitalmars-d mailing list