Menu

#3048 Game performance drops very quickly

Unspecified
closed-duplicate
nobody
None
5
2017-11-18
2017-05-13
Beep6581
No

Commit 2975d63e8
OpenJDK Runtime Environment (IcedTea 3.3.0) (Gentoo icedtea-3.3.0)

I'm playing a new game. I only have 4 settlements, but already there is a 1 second delay between my interaction with the game and when things happen, e.g. clicking a settlement window's "Close" button takes a second for the dialog to close, clicking on a unit and clicking "g" drops the framerate to about 1fps when I move the mouse cursor about, moving a ship takes about 1 second per tile movement.

I started the game using java -Xmx512M -jar FreeCol.jar

Discussion

  • Beep6581

    Beep6581 - 2017-05-13

    There is an over 1 second delay between the moment I do anything and the moment the game responds, it unfortunately makes the game unplayable. Are there any workarounds?

    Same with and without -Xmx512M.

    Saved game: https://filebin.net/mjsjmw34gs2lhro5/eda6d51a_Swedish_1638_2_Autumn.fsg

     
  • Mike Pope

    Mike Pope - 2017-05-13

    FreeCol graphics performance is not great ATM (we are concentrating elsewhere), but not as bad as you are seeing. I grabbed your game and worked fine for me.

    This leads me to suspect this is specific to your setup. There is a known lurking mysterious performance killer that I have not seen for a while but was hitting several ubuntu users not so long ago. See here
    for an old discussion, or more succinctly, quoting the (just clarified slightly) manual:

    Beware that some combinations of Java implementation and underlying
    graphics drivers have bugs that cause high CPU load and very slow
    performance, especially if animation is enabled. If this happens, either disable
    animation, try changing the pixmaps client option, or experiment with
    the \texttt{-Dsun.java2d.pmoffscreen=false} Java command line option.

    There are anecdotal reports that KDE makes things worse and/or more likely to occur, but these were contradictory, and I was running KDE at the time without incident. I am unfamiliar with gentoo's JDK versioning scheme but always recommend keeping java agressively updated. For reference I am on Fedora, using java-1.8.0-openjdk-1.8.0.131-1.b12 (updated 20170427), with hardware that dates from 2008.

    Good luck. If this is the problem described above, yes, it is very annoying.

     
  • Mike Pope

    Mike Pope - 2017-11-18

    Closing as duplicate of BR#3102, which has a proposed fix.

     
  • Mike Pope

    Mike Pope - 2017-11-18
    • status: open --> closed-duplicate
    • Group: Current --> Unspecified
     
  • vasya novikov

    vasya novikov - 2017-11-18

    --deleted--

     

    Last edit: vasya novikov 2017-11-18

Log in to post a comment.