Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java 3D > Re: flicker in ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 757 of 818
Post > Topic >>

Re: flicker in scene3D

by Thorsten Mann <atlanx@[EMAIL PROTECTED] > Jun 5, 2007 at 07:47 PM

Misterysword@[EMAIL PROTECTED]
 schrieb:
> Hi! I have got a program that it shows some scenes (I draw the scene,
> I erase it, and I draw another scene...).
> 
> The problem is the flicker. I know that I must use the method of
> double buffer.
> 
> How would you do this method? (implementation)-->An example code,
> please!!!
> 
> Regards!!!
> 

Hello.

1] Probably you don't have to use double buffering

Have a look at:

public final class WakeupOnElapsedFrames extends WakeupCriterion

You can use it to let your application only paint on a new
frame: private WakeupCondition trigger = new WakeupOnElapsedFrames(0);

-> see link to java tutorial at bottom

2] You are sure that it is a painting problen and not
a garbage collection inducted problem?

Run your programm with this java command line

java -verbose:gc <programmname>

If the your programm flickers at the same time as
you see Garbage Collector output then you should
try to avoid objects generated and then garbage collected:

Read Java 3D Tutorial: chapter 4 page 4-8..4-10
http://java.sun.com/developer/onlineTraining/java3d/

and some thougts about garbage collection (in German)
http://www.performance-tips.de/speicherumsatz.html




 2 Posts in Topic:
flicker in scene3D
Misterysword@[EMAIL PROTE  2007-05-25 15:44:53 
Re: flicker in scene3D
Thorsten Mann <atlanx@  2007-06-05 19:47:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 8:32:23 CDT 2008.