Note that there are some explanatory texts on larger screens.

plurals
  1. POJAVA 2D Game Linux terrible FameRate
    primarykey
    data
    text
    <p>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 <strong>constant frame rate of 60 fps</strong>. </p> <p>Yesterday we ran our game on a Linux computer and the frame rate was <strong>only about 10 frames</strong> per second! </p> <p><em>Does anybody have heard something like this? Having problems on running Java games on Linux? Holding up a good frame rate on Linux?</em></p> <p>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 :)</p> <p>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. </p> <p>A very short extract:</p> <pre><code>//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); </code></pre> <p>We have about 25 different images at the same time, which are directly drawn on the graphic device of the JFrame. </p> <p>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 :( )</p> <p>If anybody needs some more information to help, I would try to add some.</p> <p>Thanks for reading!</p> <p>Best regards FireDragon</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload