The painting thread in swing has a very low priority. It is possible that when using 4 canvases, your entire cpu power is used by them, leaving no resources for the swing thread, and that way it is not refreshed. Check the cpu usage. If it is 100% then try to reduce the framerates of the canvases.
Cheers, Florin -----Ursprüngliche Nachricht----- Von: ZACZEK, MARIUSZ P. (MARIO) (JSC-DM) (NASA) [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 6. Februar 2003 22:19 An: [EMAIL PROTECTED] Betreff: [JAVA3D] ? "Sync" issue ? Hi, I posted some questions regarding this topic before but either I did not follow or suggestions or the suggestions did not pan out. Justin did mention that there are issues between Java3d and SWING which may be the cause of this problem. Well, the PROBLEM is the fact that I have a canvas3D window (actually 4 canvases) and a Swing panel on the left side. When I have the 4 canvases I have a refresh/repaint issue on the SWING panel. If I only have 1 canvas this issue is not there...although this may be a result of the fact that I only have 1 canvas and thus it takes less memory. (see pic) Originally I mentioned that the refresh/repaint typically manifested itself like a smudging effect. Where the canvas3d would look like it bleed onto the swing portion as I moved the entire application off-screen and then brought it back. I've just recently noticed that I get a similar effect when I simply move the window a couple of pixels and then move another window (say netscape,wordpad) over the swing panel...it paints the window over the swing panel. It takes a few seconds (ranges from 2 to 10 sometimes) before the original swing stuff returns. If I NEVER move the original application but then I move a window (netscape, wordpad) over it, the refresh is immediate and no problems occur...it is only when I move the window just a bit. I remember someone mentioning a possible fix where one checks for resize events (I believe) ... or maybe just move events. Anyway, can you tell me what the suggestion was ... assuming this was in reference to this topic. I feel it probably is a sync issue and maybe I need to do some kind of forced sync? I've attached a screen grab of what I see...YES, I do use overlays which slow things down a bit but I see this effect even without the overlays. My setup: Dell Pentium 4 2.4 MGHz Similar results on a AMD 1.4, 512MB ram, Geforce3 256 Mb RAM Nvidia Geforce2 Pro Java 2, SE v1.4.1_01 Java3D 1.3 DirectX Mario Mariusz Zaczek NASA - Johnson Space Center Automated Vehicles and Orbit Analysis / DM35 Flight Design and Dynamics Division Mission Operations Directorate Bldg: 30A Room: 3040A Disclaimer: "The opinions, observations and comments expressed in my email are strictly my own and do not necessarily reflect those of NASA." ==========================================================================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".