glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] PerlinNoise based clouds


From: Bradley Arsenault
Subject: Re: [glob2-devel] PerlinNoise based clouds
Date: Thu, 1 Feb 2007 21:07:47 -0500

There is something odd about the new cloud implementation. Despite the
fact that I have no hardware gl (and GL is disabled) and no clouds,
the cloud drawing code still takes up an astonishing 15% of my
runtime. Just look:

-----------------------------------------------
               1.26    3.43   15130/15130       Game::drawMap(int,
int, int, int, int, int, int, unsigned int) [5]
[8]     15.4    1.26    3.43   15130
GAGCore::GraphicContext::drawCloudShadowGL(int, int, int, int, int,
unsigned int, unsigned int, unsigned int, GAGCore::Sprite*) [8]
               0.08    2.06 23239680/23239680
PerlinNoise::Noise(float, float, float) [10]
               0.11    1.18 46479360/46479360
PerlinNoise::Noise(float) [12]
               0.00    0.00       1/1
PerlinNoise::PerlinNoise() [1350]
-----------------------------------------------

and later ........

-----------------------------------------------
               0.08    2.06 23239680/23239680
GAGCore::GraphicContext::drawCloudShadowGL(int, int, int, int, int,
unsigned int, unsigned int, unsigned int, GAGCore::Sprite*) [8]
[10]     7.0    0.08    2.06 23239680
PerlinNoise::Noise(float, float, float) [10]
               2.06    0.00 23239680/23239680
PerlinNoise::Noise3d(float*) [11]
-----------------------------------------------
               2.06    0.00 23239680/23239680
PerlinNoise::Noise(float, float, float) [10]
[11]     6.8    2.06    0.00 23239680         PerlinNoise::Noise3d(float*) [11]
-----------------------------------------------
               0.11    1.18 46479360/46479360
GAGCore::GraphicContext::drawCloudShadowGL(int, int, int, int, int,
unsigned int, unsigned int, unsigned int, GAGCore::Sprite*) [8]
[12]     4.2    0.11    1.18 46479360         PerlinNoise::Noise(float) [12]
               1.18    0.00 46479360/46479360
PerlinNoise::Noise1d(float*) [13]
-----------------------------------------------
               1.18    0.00 46479360/46479360
PerlinNoise::Noise(float) [12]
[13]     3.9    1.18    0.00 46479360         PerlinNoise::Noise1d(float*) [13]
               0.00    0.00       1/1
PerlinNoise::generateLookupTables() [1348]
               0.00    0.00       1/1           PerlinNoise::reseed() [1349]
-----------------------------------------------

It seems like, despite having Open GL disabled, the Perlin based
clouds are still attempted to be drawn, resulting in no clouds at all.


--
Really. I'm not lieing. Bradley Arsenault.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]