Results 1 to 3 of 3
  1. #1
    ruben381 is offline Member
    Join Date
    Jan 2012
    Posts
    13
    Rep Power
    0

    Default Game running far too fast on friend's computer

    I think it's because his computer is much faster, but I'm not sure. Does anyone know what I can do? (It runs at a perfect speed on my computer. I'm running Vista, he probably has 7)

    Here's the information you'll need:

    - I'm using A JFrame with a JPanel over it
    - I'm using moving rectangles


    Thanks everyone,

    -Adam

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,438
    Blog Entries
    7
    Rep Power
    20

    Default Re: Game running far too fast on friend's computer

    Have a look at the Timer class in the javax.swing package and make all your screen/window updates timed. You have to experiment a bit with the time intervals.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default Re: Game running far too fast on friend's computer

    I'm reminded of Digger. Lovely game on the PC/XT with a 8 MHz / 4.77 MHz switch on the back of the cabinet, but 16 MHz killed it. I don't think it was ever redeveloped with a timer to be independent of processor speed.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 5
    Last Post: 11-30-2011, 06:44 PM
  2. Where can I create sound for a computer game?
    By rajkobie in forum New To Java
    Replies: 2
    Last Post: 05-12-2011, 09:07 AM
  3. Making my application Friend Friendly
    By chayan in forum Java 2D
    Replies: 3
    Last Post: 07-04-2010, 06:27 PM
  4. friend... A doubt in string concept
    By u&me@javaforums in forum New To Java
    Replies: 9
    Last Post: 01-16-2010, 01:49 AM
  5. Embarrisingly simple from "a friend"
    By v6g in forum New To Java
    Replies: 5
    Last Post: 11-25-2009, 11:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •