if you update data in a live geometry there is a huge overhead. you can
avoid some of it by updating all colors in your shape at once (with
setColors() instead of setColor(), note the plural).
also the output you attached sounds like you are still using the 1.2 runtime
with its incredibly slow garbage collector. you should switch to 1.3rc1, it
will boost performance. it is available from developer.java.sun.com.
-- julian
-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Marco Lohse
Sent: Tuesday, March 14, 2000 8:50 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Bug in setColor in Beta1
Hi,
I have a function which updates colors of a Shape3D (Geometry is a
LineArray) in a Canvas3D.preRender()-function. This worked fine and fast
before I updated to Beta1.
Now, the setColor()-function is making everything very slow ( I checked this
by deleting the calls). I only get a frame every 1-2 seconds! Also, I get
very huge garbage collector calls (see below), which I do not get without
calling setColor().
Is this a bug, or a problem with calling Canvas3D with GraphicsConfiguration
= null ?
Thanks for any comments, Marco.
<GC: managing allocation failure: need 1032 bytes, type=2, action=2>
<GC: 160 milliseconds since last GC>
<GC: expanded handle space by 610304 to 2155312 bytes, 35% free>
<GC: need to expand mark bits to cover 7936 bytes>
<GC: managing allocation failure: need 1032 bytes, type=1, action=1>
<GC: 1210 milliseconds since last GC>
<GC: freed 7918 objects, 215504 bytes in 154 ms, 31% free
(4588568/14605512)>
<GC: init&scan: 2 ms, scan handles: 134 ms, sweep: 18 ms, compact: 0 ms>
<GC: 0 register-marked objects, 80 stack-marked objects>
<GC: 0 register-marked handles, 337 stack-marked handles>
<GC: refs: soft 0 (age >= 4), weak 0, final 24, phantom 0>
<GC: managing allocation failure: need 1032 bytes, type=1, action=2>
<GC: 170 milliseconds since last GC>
<GC: expanded object space by 1048576 to 15654088 bytes, 36% free>
<GC: need to expand mark bits to cover 16128 bytes>
<GC: managing allocation failure: need 235360 bytes, type=1, action=1>
<GC: 3020 milliseconds since last GC>
<GC: compactHeap took 241 ms, swap time = 56 ms, blocks_moved=57337>
<GC: 0 explicitly pinned objects, 37 conservatively pinned objects>
<GC: last free block at 0x026FFCFC of length 107264>
<GC: last free block is at end>
<GC: freed 19728 objects, 548096 bytes in 410 ms, 33% free
(5227944/15654088)>
<GC: init&scan: 2 ms, scan handles: 144 ms, sweep: 22 ms, compact: 242 ms.
===========================================================================
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".
===========================================================================
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".