Hi All (on both lists),

I suspect a context switching problem, or some similar conflict between
java 2D and 3D rendering.  I am not sure, and any suggestions would be
appreciated.

Description of problem -

I have an application that has a Java 3D Canvas (using Xj3D) to display
the main data and a number of other panels (swing and java 2D) in the
same window to display the controls and "metadata".  Up until now I had
very good performance.

I have just added a large JPanel, enclosed in a JScrolPane.  I draw
onto the JPanel with java 2D, and scroll around the panel programmatically
(no automatic scroll bars).

If I have either the Java 3D Canvas or the large JPanel (about 4000
characters with coloured blocks behind them), the performance is good.
If I have them both, then the frame rate drops to 1 frame every few
seconds.  It is the Java 3D canvas that is taking the time.

Am I doing something wrong?  Is this unavoidable with large java 2D and
java 3D objects at the same time?

See http://www.hgmp.mrc.ac.uk/~hmorgan2/context/index.html for a
picture, and possibly some more info if I think of anything else that
needs saying.

Thanks for any help,

Hugh

PS. I know the obvious way to solve this is to only draw the bit of the
JPanel that is seen and dispence with the JScrollPane, but I would
really like to know the reason for this problem.

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