Norihito Hiruma wrote:

> And I changed my code as your advice.
> (It had the reference table of Material, and specified the color directly
> without array).
> But, there was hardly a change in the result.

Very surprised by that....

> If the cash reference of 5-6 times only has a loop 10000 times and takes
> several seconds, Java is too slow, and it can't be used.
> I think that Java is not so slow, isn't it?

In some cases yes, many others no. Depends on what you are doing you
don't code a Java app in the same way you would code a C or even C++
application. Completely different assumptions about the environment.

OK, let's try a few other things.

- My reading of your code seems to suggest you are using exactly the
same material colour values for all 10K objects. Is that so? If so, why
use 10K instances of the Material object. You should just use one and
share that instance between all Shape3D instances. The more instances
you can share, the faster your application. For example, if you have 10
different coloured objects you only need 10 instances of the Material
rather than 10,000.

- You may be stumbling on something j3d is doing with the rendering
process if it is taking so long. Have you tried calling stopRender(),
changing all the values, and then calling startRender() again?



--
Justin Couch                                    Author, Java Hacker
http://www.vlc.com.au/~justin/               Java 3D FAQ Maintainer
http://www.j3d.org/              J3D.org The Java 3D Community Site
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
process data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
                                              - Greg Bear, Slant
-------------------------------------------------------------------

===========================================================================
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".

Reply via email to