Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: "Nice"

  1. #1
    Join Date
    Jan 2008
    Beans
    144

    "Nice"

    this may sound like a WINE question but its not haha

    im am playing a game using WINE and its running a little slow.
    i was speaking to the admin of the game who also uses Ubuntu 8.04 and runs the game and he said it runs like when using winblows.

    he told me to use something in the terminal called "nice".
    he told me to trying in "man nice" for help
    but is not very much help haha

    any help is apprecticated.

    Peter

  2. #2
    Join Date
    Jan 2007
    Location
    $here ? $here : $there
    Beans
    3,717
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: "Nice"

    I think it's sometimes necessary to set the wine server to nice. You might be able to run your command like this:

    Code:
    nice normal_command_to_run_your_wine_program
    Or, if that doesn't help, once the game is running, you could also try:

    Code:
    renice +19 `pidof wineserver`
    Don't try to make something "fast" until you are able to quantify "slow".

  3. #3
    Join Date
    Jan 2008
    Beans
    144

    Re: "Nice"

    i was reading it aswell.. and it said that the numbers are from -20 to 19. with -20 making the program with most priority and 19 being less.

    so if i wanted wine to have more priority would i put

    Code:
    renice -20 `pidof wineserver`

  4. #4
    Join Date
    Jan 2007
    Location
    $here ? $here : $there
    Beans
    3,717
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: "Nice"

    You can try both the highest (negative numbers) and lowest (positive numbers) priorities to see which works best. I have a feeling it will be the +19 that helps though.
    Don't try to make something "fast" until you are able to quantify "slow".

  5. #5
    Join Date
    Jan 2008
    Beans
    144

    Re: "Nice"

    cheers mate
    i will try this when i get to my ubuntu machine as i am at work.

    one last thing

    this code

    Code:
    nice normal_command_to_run_your_wine_program
    whats the normal command haha.

    Peter

  6. #6
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: "Nice"

    The problem here would be that only root is allowed to set nice levels smaller than 0. Normal users are only able to use nice values of 0 to 19 (making programs slower than normally, thus more "nice" towards other running processes).

    So getting more performance would require running wine & the game as root, which doesn't sound like a smart/safe idea to me..

  7. #7
    Join Date
    Jan 2008
    Beans
    144

    Re: "Nice"

    what would that do? make system files vunurable for attacks or something?

  8. #8
    Join Date
    Jan 2007
    Location
    $here ? $here : $there
    Beans
    3,717
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: "Nice"

    Quote Originally Posted by pedrom169 View Post
    cheers mate
    i will try this when i get to my ubuntu machine as i am at work.

    one last thing

    this code

    Code:
    nice normal_command_to_run_your_wine_program
    whats the normal command haha.

    Peter
    Whatever command you normally use to start your game.

    Quote Originally Posted by mcduck View Post
    The problem here would be that only root is allowed to set nice levels smaller than 0. Normal users are only able to use nice values of 0 to 19 (making programs slower than normally, thus more "nice" towards other running processes).

    So getting more performance would require running wine & the game as root, which doesn't sound like a smart/safe idea to me..
    Yes, normally that's true but, in the case of wine programs, there is the actual program and then there is wineserver (I assume it's providing some Windows services that allow things to run on Linux). By setting the wineserver to nice, you are giving preference to the actual executable and not the wine server which, in the case of games, may make a difference.
    Don't try to make something "fast" until you are able to quantify "slow".

  9. #9
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: "Nice"

    Quote Originally Posted by pedrom169 View Post
    what would that do? make system files vunurable for attacks or something?
    At least more vulnerable than it is now. Using minimum permissions reequired for the task is pretty much the backbone of Linux/Unix security, and running things as root gives them _full_ unlimited permissions to everything in your system.

    Even if it wouldn't be security issue it would make possible software bugs affect the whole system instead of just your own user account.

  10. #10
    Join Date
    Jan 2008
    Beans
    144

    Re: "Nice"

    Quote Originally Posted by vor View Post
    Whatever command you normally use to start your game.
    ifs its basically in applications > Wine > programms > Terra World Online> TWOReborn.exe

    what would i write?

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •