All Java 3D threads inherit the priority of the thread that loaded the
first Java 3D class.
To set Java 3D thread priorities explicitly, use
VirtualUniversesetJ3DThreadPriority().

Doug Twilleager
Java 3D Team
Sun Microsystems

Smith, Daniel wrote:

> Am I right to assume that the application class in a J3D thread, is a
> separate thread from the renderer, but has a pretty low priority?
>
> If it matters, I'm extending Applet in my case, since once upon a time
> we were trying to be browser-compatible, but have a main method to run
> it as an app.
>
> I've noticed that any time I have anything even slightly substantial
> going on in my main class (say, create a particle emitter object after
> a certain key is pressed), the renderer continues just fine, but since
> my keyboard listeners are in that class, they stop responding until
> that other first task is done.  In the case again of the particle
> emitter, which is a pretty simple class, this seems to take several
> seconds the first time, and maybe a second or half-second each time
> thereafter.  There's other things going on, like adding/removing
> branchgroups, etc.
>
> Makes me wonder if the main thread is getting starved by the rendering
> thread and/or behaviors, and if queuing any type of object creation in
> a thread is normal...
>
> In case I'm doing something horribly wrong, here's the basic structure
> of my app:
>
> Main
> =======
> vp2testb.class (owner of terrain universe, branch groups, player
> branch groups, scenery branch groups, etc)
>
> Behaviors (all are condition wake on elapsed frames(0)):
> =======
> WorldManager:  (handles model, scenery & terrain loading, time of day
> changes)
> FrameAnimation (handles animating and moving avatars, entities, NPC's)
> EffectsManager (animated special effects like animated textures,
> particles, etc)
> LocationSend (sends location information at predefined interval, if
> new info is available)
>
> Threads:
> ========
> SocketThread (receives and processes incoming messages, sends outgoing
> messages).
>
>
>
> Scott
>
>

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