Hi Kim,

I havent got into debugging yet. I am planning to get into this week. WIll
keep you posted

Nick

http://www.linkedin.com/in/tnick


On Wed, Jan 27, 2010 at 11:27 AM, Kim Bale <[email protected]> wrote:

> Hello Hello.
>
> Did this get sorted? Or was there a genuine leak?
>
> I just had a quick look and realised that changing the sun direction
> doesn't actually need to dirty the scene state. It's only needed to  set
> uniforms in the GodRays and GodRayBlendSurface shaders. Those classes
> already have getters and setters for sun direction so I'll make a little mod
> so that it just updates the uniforms rather than rebuilds everything.
>
> I think I must have just forced a rebuild because I assumed that the sun
> direction wouldn't change. The leak however is more worrying.
>
> Kim.
>
> 2010/1/25 Trajce Nikolov <[email protected]>
>
> Ok .. I will do that.
>>
>> I am Window7, osg like two weeks ago from the trunk and run your test app
>> from the code you sent me
>>
>> I ll try to nail it down and let you know
>>
>> Nick
>>
>> http://www.linkedin.com/in/tnick
>> Sent from Haguenau, Alsace, France
>>
>> On Mon, Jan 25, 2010 at 7:10 PM, Jean-Sébastien Guay <
>> [email protected]> wrote:
>>
>>> Hi Nick,
>>>
>>>
>>>  on windows, it does eats the memory in large chunks .... after 5
>>>> minutes, It reach the limit
>>>>
>>>
>>> I'm on Windows... Vista (at work) to be specific.
>>>
>>> Did you just compile osgOcean and the oceanExample? Which compiler? Which
>>> version of OSG?
>>>
>>> Sorry I'm kind of out of ideas, since it works fine for me... Can you
>>> look into the code since you can reproduce it? I suggest you start with
>>> OceanScene::init() and start by commenting out the whole method, see if the
>>> leak goes away, then uncomment half of it, check again, etc. until you've
>>> found the source... The block at the start where things are being set to
>>> NULL should cause objects in ref_ptrs to be freed before they're
>>> recreated...
>>>
>>> Good luck,
>>>
>>>
>>> J-S
>>> --
>>> ______________________________________________________
>>> Jean-Sebastien Guay    [email protected]
>>>                               http://www.cm-labs.com/
>>>                        http://whitestar02.webhop.org/
>>> _______________________________________________
>>> osg-users mailing list
>>> [email protected]
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>>
>>
>>
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to