Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Page 2 of 2 FirstFirst 12
Results 26 to 36 of 36

Thread: lagging animation

  1. #26
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: lagging animation

    Sorry, I have no ideas how to change your times for the program. The timePassed values for the latest program:
    // [10, 0, 0, 0, 0, 233, 384, 77, 85, 190, 89, 15, 8, 6, 7, 2, 6, 1, 1, 0, 2, 3, 1, 2, 2, 1, 4, 2, 30, 18]
    If you don't understand my answer, don't ignore it, ask a question.

  2. #27
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: lagging animation

    Quote Originally Posted by chri View Post
    I removed the call of mainclass() from screen cause it was useless, I have no clue of why I created it , but I don't get it, if I need a method from mainclass how can I not create a new object of it?
    You need more than a "method from mainclass". When you call a method of an object you usually do this to alter that object's behavior or state or to query its state, and what matters most and in fact what matters completely is the state and the behavior of the mainclass object that is currently being displayed, not some random mainclass instance that you create for the sole purpose of calling a method.

  3. #28
    Member
    Join Date
    Dec 2012
    Posts
    33
    My Mood
    Confused
    Thanks
    2
    Thanked 2 Times in 1 Post

    Default Re: lagging animation

    ok thank you anyway, I'll try on other computers...

  4. #29
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: lagging animation

    Where are your image resources? Can you up load these?

  5. #30
    Member
    Join Date
    Dec 2012
    Posts
    33
    My Mood
    Confused
    Thanks
    2
    Thanked 2 Times in 1 Post

    Default Re: lagging animation

    sure, the background is just a yellow rectangle
    http://i48.tinypic.com/mto5kg.png

    and here's the ball
    http://i49.tinypic.com/16c27a8.png

    I tried on my father's computer, an old toshiba laptop, and it runs at 60 fps, this makes me angry >
    does the fact that I use OSX affect the animation in any way?

  6. #31
    Member
    Join Date
    Dec 2012
    Posts
    33
    My Mood
    Confused
    Thanks
    2
    Thanked 2 Times in 1 Post

    Default Re: lagging animation

    someone told me to "enable hardware acceleration" to solve this problem...does anyone have any clue on how to do that?

  7. #32
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: lagging animation

    Also posted at slow java on my computer
    If you don't understand my answer, don't ignore it, ask a question.

  8. #33
    Member
    Join Date
    Dec 2012
    Posts
    33
    My Mood
    Confused
    Thanks
    2
    Thanked 2 Times in 1 Post

    Default Re: lagging animation

    Quote Originally Posted by Norm View Post
    uhm...yes, but I don't think it's cross posting..I mean it's a different forum I was registered on...I couldn't find my answer here so I tried there..is it a crime?

  9. #34
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: lagging animation

    Not a crime. But it is courteous to post links to other sites where the the topic is posted so everyone can see what progress is being made.
    If you don't understand my answer, don't ignore it, ask a question.

  10. #35
    Member
    Join Date
    Dec 2012
    Posts
    33
    My Mood
    Confused
    Thanks
    2
    Thanked 2 Times in 1 Post

    Default Re: lagging animation

    I didn't make it cause as far as I know posting a link to another website (rival, i think) on a forum is considered as spam...

  11. #36
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: lagging animation

    Quote Originally Posted by chri View Post
    I didn't make it cause as far as I know posting a link to another website (rival, i think) on a forum is considered as spam...
    You think wrong. No websites are "rivals" and any programming forum staffed by volunteers would greatly appreciate seeing these links. We value our free time and appreciate posters who respect this fact.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Animation in JApplet
    By Aurin in forum What's Wrong With My Code?
    Replies: 3
    Last Post: January 14th, 2012, 10:18 AM
  2. My program keeps lagging when dealing with large arrays.
    By chrynelson in forum Java Theory & Questions
    Replies: 4
    Last Post: October 21st, 2011, 04:57 PM
  3. Blender file with animation, how to import OBJ(w/ animation) into Java?
    By cr80expert5 in forum Object Oriented Programming
    Replies: 0
    Last Post: May 12th, 2011, 03:11 AM
  4. Project with animation.
    By ryainad in forum Paid Java Projects
    Replies: 3
    Last Post: April 10th, 2011, 02:59 PM
  5. Basic Animation
    By tabutcher in forum Java Theory & Questions
    Replies: 0
    Last Post: April 20th, 2010, 10:07 AM