Hello David,
Tuesday, April 03, 2001, 7:29:48 PM, you wrote:
YDJ> I believe that unless your texture is by reference Java3d creates a
YDJ> *retained* version (as it does for everything) For most things this copy is
YDJ> not that expensive, but for geometry and textures it is *quite* expensive.
YDJ> When I profile my application I see approx 40 percent of my memory being
YDJ> stored in retained versions of my scenegraph. I can't really figure out why
YDJ> it is necessary to do that. The problem is that if you use by-reference for
YDJ> things, to save memory, you also pay a performance penalty because Java3d
YDJ> starts sending things every frame and stop using display lists.
YDJ> Dave Yazel
I think you're right, but look - Java3D takes memory twice:
First - when I add Shape3D to BranchGroup
Second - when I add BranchGroup to Universe in first time
and in both cases - about 10Mb.
And if I do
BG.detach();
and then MyUniverse.addBranchGraph(BG); (second time) it DOESN'T TAKE
MEMORY again. Do you know why it is so?
YDJ> -----Original Message-----
YDJ> From: Andrey [mailto:[EMAIL PROTECTED]]
YDJ> Sent: Tuesday, April 03, 2001 12:10 PM
YDJ> To: [EMAIL PROTECTED]
YDJ> Subject: [JAVA3D] Memory usage. Why?
YDJ> Hi everybody.
YDJ> When create some textured object and then add then to Branch group, it
YDJ> takes
YDJ> about 10Mb. OK.
YDJ> But when I add a this BranchGroup to Universe, it takes in additional 8Mb.
YDJ> So what does Java3D do when BranchGroup is adding to Universe to take so
YDJ> much memory?
YDJ> I got WindowsNT,RivaTNT2, jdk 1.2.1 with Java3D for OpenGL.
YDJ> --
YDJ> Best regards,
YDJ> Andrey mailto:[EMAIL PROTECTED]
YDJ> ===========================================================================
YDJ> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
YDJ> of the message "signoff JAVA3D-INTEREST". For general help, send email to
YDJ> [EMAIL PROTECTED] and include in the body of the message "help".
YDJ> ===========================================================================
YDJ> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
YDJ> of the message "signoff JAVA3D-INTEREST". For general help, send email to
YDJ> [EMAIL PROTECTED] and include in the body of the message "help".
--
Best regards,
Andrey mailto:[EMAIL PROTECTED]
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".