Giter Club home page Giter Club logo

Comments (1)

machinedgod avatar machinedgod commented on August 17, 2024

Had the some problem, but figured out why and how to fix it.

First, find your game's PID (ps, htop, pgrep), then run ananicy dump proc | grep -A 10 '(<pid>' to see internal process map the way Ananicy sees it (it uses the /proc tree).
You should see the output similar to this:

 (255763, 255841, 'wine64-preloader'): {'autogroup': {'group': 945, 'nice': 0},
                                        'cmd': 'wine64-preloader',
                                        'cmdline': ('Z:\\home\\john\\.local\\share\\Steam\\steamapps\\common\\Get '
                                                    'To The Orange Door\\Get '
                                                    'To The Orange Door.exe',
                                                    '',
                                                    '',
                                                    '',

Notice that cmd is not the game's exe name, but wine64-preloader. The game's name (with its full path) is the parameter - don't get confused with parameter being split multiple lines, notice that first two do not have comma at the end - so they'll be concatenated together.

Now, if you write a rule such as:

{ "name": "wine64-preloader", "type": "game"}

this'll apply the rule to all wine processes - which is not what you want.

You need to use cmdlines parameter (as explained in documentation) and add the game's full path as a parameter. This is the rule I've created for "Get To The Orange Door" and it works.

# https://store.steampowered.com/app/541200/GTTOD_Get_To_The_Orange_Door/
{ "name": "wine64-preloader", "cmdlines": ["Z:\\home\\john\\.local\\share\\Steam\\steamapps\\common\\Get To The Orange Door\\Get To The Orange Door.exe"], "type": "game"}

Now, the question that I can't answer - is /this/ the process that needs to have its niceness upped, since its a wine process? Does wine need upping priority too?
Can't anwer these, but GTTOD used to drop to 43FPS for me and have few stutters when loading - niceing it to -20 fixed all of that, and now it runs at stable >60FPS..

Fun fact:
I've checked about 50-60% of wine rules in the 00-defaults - and they're all wrongly set up, ie. neither one will work.

Scratch that - Fallout76.exe works by default config, and the dump proc output returns same value as for GTTOD. I wonder if spaces in the title make a difference...

from ananicy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.