[Lazarus] FPC Pestering Peacock (3.0.0) release

Sven Barth pascaldragon at googlemail.com
Thu Nov 26 20:08:50 CET 2015

Am 26.11.2015 20:02 schrieb "Kostas Michalopoulos" <badsectoracula at gmail.com
> Wow, that is a great release. Two major things for me:
> 1. I had a bug in my 3D world editor for some time now that i couldn't
spot. Turns out, i was accessing the fields of a direct getter property
(property Foo: TSomeStruct read FFoo...) that in 2.6.4 most of the time it
worked but now and then it accessed garbage. The code looked right (this
might be a negative for property syntax looking exactly like variable field
syntax...) so i never focused on that bit. But 3.0.0 refused to compile it
and once i changed it, the bug went away.

At least the change paid off then ;)

> 2. The editor's lightmapper seems to be between 3 to 3.5 times faster! Of
course having said that, it is really unoptimized and a lot of the slowness
in 2.6.4 seemed to be from FPC inserting tons of calls to "hidden" methods
so probably the speed up came from optimizing the usage of those (i haven't
investigated why it is faster, i just report it - besides i plan to rewrite
the lightmapper anyway since it is a prototype that outlived its purpose
for almost four years :-P but in the meanwhile the performance boost is
very welcome).

Good to know that the compiler indeed generates better code now :D

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20151126/fef21b30/attachment-0003.html>

More information about the Lazarus mailing list