|
From: | Erik Søe Sørensen |
Subject: | Re: [glob2-devel] New clouds |
Date: | Thu, 13 Sep 2007 02:43:14 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; da; rv:1.7.13) Gecko/20060717 Debian/1.7.12-1.1ubuntu2 StumbleUpon/1.9995 |
Kieran P skrev:
This way, if you pull master you get bug fixed code, if you pull optimized, you get bug fixed code with new features.
Right. This is the case now; it's just a question of merging in master changes regularly.
Anyway, done profiling. Results at: http://dl.sv.nongnu.org/releases/glob2/profiling.tar.bz2Looks like the two functions it used to call (perlin noise and cloud compute (or something like that)), are now just one function (simplex noise) with about 6% less cpu used??
Well, DynamicClouds::compute() is still there, so the (absolute) savings seems to be down at 3%. But on the other hand, cloud computation is done about 50% more times - which probably means a 50% increase in the framerate? Anyway, not 6x speed according to these measurements, but still something :-)
The gains of eliminating floating point operations are somewhat machine dependent...
(Fwiw, my measurements are based on a program running both the old and new version at the same time, to ease comparison.)
/Erik
[Prev in Thread] | Current Thread | [Next in Thread] |