Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6001829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:53:26+00:00 2026-05-23T00:53:26+00:00

I’m developing a 2D game in java. Our group is normally developing on a

  • 0

I’m developing a 2D game in java. Our group is normally developing on a Windows and Mac platform.
No problems appear during the game and we have a constant frame rate of 60 fps.

Yesterday we ran our game on a Linux computer and the frame rate was only about 10 frames per second!

Does anybody have heard something like this? Having problems on running Java games on Linux?
Holding up a good frame rate on Linux?

I don´t know which code lines(at the moment more then 12000) I should show you, so you could understand my problem.
But I’ll try to explain a little of our concept so maybe you know a solution or you can give us a hint 🙂

We build a Content Manager Service, which loads and holds our images which should be drawn on the JFrame. Typically we are using images in a png format.

A very short extract:

//Load our images which are later drawn on the Frame
URL url = this.getClass().getClassLoader().getResource( the right image Path);
this.image = ImageIO.read(url);

//extract of draw
this.graphicsDevice.getGraphics().drawImage(ourImage, x , y , null);

We have about 25 different images at the same time, which are directly drawn on the graphic device of the JFrame.

I don´t have any experience with Linux, that’s why I can´t understand the source of the terrible frame rate. (Remember, on windows and mac pcs it´s constant 62 fps, with the same code 🙁 )

If anybody needs some more information to help, I would try to add some.

Thanks for reading!

Best regards
FireDragon

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:53:27+00:00Added an answer on May 23, 2026 at 12:53 am

    I would ask the user experiencing such problems which version of X, video card drivers and jre he is running and if compositing is on.

    I experienced dramatic increase of RAM/CPU usage with the same application after updating to newer version of openjre.

    There’s no such thing as Linux machine, there are machines with (AMD|nVidia|Intel) video cards running (latest|outdated) (proprietary|free) drivers and (KDE|Gnome|whatever) and (openjre|sunjre), and each combination of software/hardware would show different results.

    I would try to test an application on AMD and nVidia machines, with proprietary and free drivers and with openjre and sunjre to have an idea what causes low fps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a simple platform game in Java using BlueJ. Over the next
I am developing a simple platform game using Java using BlueJ as the IDE.
I'm developing a Java game and want to bundle and play a number of
What is the best package for game developing in Java; I work with JITTers
I'm probably doing this wrong, so please be nice. I'm developing a Java game,
I'm developing a simple 2D game in Java, everything works fine. To find the
I'm developing a game that I will distribute using Java Web Start / JNLP.
I am developing a small game in Java and I am shipping it as
I am developing a simple game using Java swing. I want to know whether
I am developing a small game (in Java) for a coursework and the extension

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.