Classinfo and @nogc conflict
solidstate1991
laszloszeremi at outlook.com
Tue Mar 6 03:07:49 UTC 2018
I'm trying to speed up my graphic engine, however the presence of
the GC in function Layer.updateRaster (see here:
https://github.com/ZILtoid1991/pixelperfectengine/blob/master/pixelperfectengine/src/PixelPerfectEngine/graphics/layers.d ) means I get an occasional bump in CPU usage if not a framedrop (most performance related thing got fixed since then).
I use classinfo for detecting the type of bitmaps, and while I
probably will have a workaround for the associative array stuff,
the classinfo thing is embedded into the runtime library, thus it
needs to be fixed. I took a look at opEquals, but the trickier
part would be making the toString function @nogc (make its return
value a ref type?).
More information about the Digitalmars-d
mailing list