Comments (1)
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)
- wineserver.rules give error due fifo scheduler HOT 2
- How Do I Autostart Ananicy
- Add gmod support HOT 2
- Use eBPF to get events of new created processes HOT 1
- Different rules for same application
- I see this error when starting "ananicy dump proc" HOT 4
- Logging is disabled but there is logging anyway and the logging shows that ananicy is hyperactive
- More "ananicy dump proc" Issues HOT 5
- 'FileNotFoundError: [Errno 2] No such file or directory: '/proc/1447210/exe'' HOT 3
- Crash and restart: 'failed to get priority' HOT 2
- Cant start the service ananicy.
- No rule for KDE Elisa music player
- Still problems with dump proc
- Feature Request: Interval Wait To Renice
- Latest major update breaks user defined rules HOT 3
- First matching rule is applied, rather than rule from highest-priority file
- cmdline splitting fails for some processes
- Error: "type": "BG_CPUIO" not defined HOT 1
- Bug: rules setting a value to zero will never get applied!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ananicy.