Results 1 to 6 of 6
  1. #1
    Alerhau's Avatar
    Alerhau is offline Senior Member
    Join Date
    Jun 2011
    Location
    Sweden
    Posts
    158
    Rep Power
    4

    Default Still need some optimizing help for my game.

    My game still laggs while changing a lot of JLabels (Changing images of them),
    ofcorse the computer laggs when she has to change 600 JLabels a second.

    Could I maybe get any tips?
    Now when I've started doing it this way,
    it would be great if I could finish the product in this way.

    Thanks,
    Ah
    Currently Developing a Game Called Loaie, You Can Download It From "The Loaie Website".

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default Re: Still need some optimizing help for my game.

    Don't use swing components. It's some abstraction layer for AWT. Use AWT directly.
    Skype: petrarsentev
    http://TrackStudio.com

  3. #3
    Alerhau's Avatar
    Alerhau is offline Senior Member
    Join Date
    Jun 2011
    Location
    Sweden
    Posts
    158
    Rep Power
    4

    Default Re: Still need some optimizing help for my game.

    How would I do that?
    Currently Developing a Game Called Loaie, You Can Download It From "The Loaie Website".

  4. #4
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default Re: Still need some optimizing help for my game.

    Read that Java AWT tutorial
    But actually I think it is bad sign that you use too many labels for move a image.
    Skype: petrarsentev
    http://TrackStudio.com

  5. #5
    Alerhau's Avatar
    Alerhau is offline Senior Member
    Join Date
    Jun 2011
    Location
    Sweden
    Posts
    158
    Rep Power
    4

    Default Re: Still need some optimizing help for my game.

    Well... The game that I am creating is a dwarf fortress looking game.
    That is why I am using JLabels.
    I need a lot of them to be able to see a great part of the world.

    Thanks,
    Ah
    Currently Developing a Game Called Loaie, You Can Download It From "The Loaie Website".

  6. #6
    Alerhau's Avatar
    Alerhau is offline Senior Member
    Join Date
    Jun 2011
    Location
    Sweden
    Posts
    158
    Rep Power
    4

    Default Re: Still need some optimizing help for my game.

    One more thing.
    How do I set the icon of an AWT Label?
    Currently Developing a Game Called Loaie, You Can Download It From "The Loaie Website".

Similar Threads

  1. Replies: 1
    Last Post: 06-02-2011, 09:29 AM
  2. Quick Optimizing question
    By sgthale in forum New To Java
    Replies: 6
    Last Post: 04-15-2011, 01:25 AM
  3. Replies: 2
    Last Post: 08-05-2010, 04:49 AM
  4. game code for any game
    By deathnote202 in forum Java Gaming
    Replies: 4
    Last Post: 06-10-2010, 08:06 AM
  5. 2D strategy game or 2D war game
    By led1433 in forum Java 2D
    Replies: 5
    Last Post: 02-10-2009, 06:00 AM

Posting Permissions

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