1. Welcome to the Brawl website! Feel free to look around our forums. Join our growing community by typing /register in-game!

Technology [Mac OS] [Linux] FPS Boost!

Discussion in 'Off Topic' started by KirbysDreamLand, Oct 4, 2015.

?

How did this affect your FPS?

  1. Increase

    1 vote(s)
    100.0%
  2. Decrease

    0 vote(s)
    0.0%
  3. About the same

    0 vote(s)
    0.0%
Thread Status:
Please be aware that this thread is more than 30 days old. Do not post unless the topic can still be discussed. Read more...
  1. KirbysDreamLand

    KirbysDreamLand Well-Known Member

    Joined:
    May 17, 2015
    Messages:
    260
    Ratings:
    +77
    Hello all! I have written a launcher for the Minecraft Lanucher that might improve fps on Mac OS and Linux! Woo!

    These are my results on Linux. Yours will vary.
    Code:
    FPS W/ LAUNCHER
    MIN: 146
    AVG: 499
    MAX: 1063
    
    FPS W/O LAUNCHER
    MIN: 85
    AVG: 345
    MAX: 568
    It works by using the command nice to assign a higher niceness value! This has about the same effect as setting a higher process priority in Windows.

    The launcher is written in c++ and source code for it can be found on GitHub here https://github.com/kirby2ig/Launcher.


    I don't know if I will make something like this for Windows. It is a lot easier on Mac/Linux because the operating systems are very similar. Windows, on the other hand, is a totally different beast. Also, I don't know anything about the internal workings of Windows.

    Post any problems below, and I will try to fix them. If you want the latest and greatest version, you can always visit the GitHub page and compile the code for yourself. Happy CTFing!

    Thanks to @BrandinoB for helping me test this in its early stages.

    If anyone would like to make a logo for this, it would be greatly appreciated. Currently there is none.

    I wanted to post this in guides first but this is not much of a guide. Can someone move it somewhere else?
     
    • Like Like x 3
    #1 KirbysDreamLand, Oct 4, 2015
    Last edited: Oct 4, 2015
  2. SoCool21

    SoCool21 Bans Reports & Appeals Admin | McPvPer for Life <3

    Joined:
    May 17, 2015
    Messages:
    6,096
    Ratings:
    +2,517
    Nice :confused:

    Brawl, if you need some new coders, check here.....
     
  3. KirbysDreamLand

    KirbysDreamLand Well-Known Member

    Joined:
    May 17, 2015
    Messages:
    260
    Ratings:
    +77
    I will be rolling this executable up in a Mac OS .app package soon. That should fix some issues with it on Mac. For now, you will have to make it executable by running chmod 777 <Path to File> or chmod +x <Path to File> in the terminal.

    This is what I ran when I tested on my other Linux computer:
    Code:
    chmod 777 ~/Desktop/Launcher
    If you don't know the path to the executable, you should just be able to drag and drop it into the terminal and it will type it for you.

    Then, just double-click it and go!

    Version 1.1 is out with a Mac OS .app! Yay!
     
  4. Phanta

    Phanta Well-Known Member

    Joined:
    Jan 1, 2014
    Messages:
    2,555
    Ratings:
    +997
    Wouldn't you need root to run this? That seems like a security issue.
    Also, it's a hassle to have to type in your password every time :v

    Edit: Couldn't you just write a short shell script to do the same thing? :v
     
    #4 Phanta, Oct 4, 2015
    Last edited: Oct 4, 2015
  5. KirbysDreamLand

    KirbysDreamLand Well-Known Member

    Joined:
    May 17, 2015
    Messages:
    260
    Ratings:
    +77
    Actually, no. You would need root for renice, though. As for the shell script thing, I wrote one before this. It had problems running on Mac for some reason though. Also, it seemed like a fun way to learn some more about c++ and all.

    This is the Mac script thingy. http://www.mediafire.com/download/06ndt7o0yo8vlpu/Launch.command. Don;t forget to chmod it first.

    Also, there is a bug running the Mac version on Macs without xcode installed. I will fix soon!
     
    • Useful Useful x 1
  6. Andrwe

    Andrwe Well-Known Member

    Joined:
    May 21, 2015
    Messages:
    691
    Ratings:
    +107
    Discord:
    Pinkos / Stake#0338
    Yeah @Phanta, duh!


    wat?


    But this is pretty neat, I'd love to try it, too bad I'm on windows :c.
     
  7. Phanta

    Phanta Well-Known Member

    Joined:
    Jan 1, 2014
    Messages:
    2,555
    Ratings:
    +997
    It's the equivalent of changing the process' priority to "High" in task manager.
     
  8. williamthegreat

    Joined:
    Jun 13, 2015
    Messages:
    2
    Ratings:
    +0
    A
    Ah i see. setting chmod priorities. Sick program dude!
    If only someone here had the knowhow of .NET, and Java we might get a Windows version...
     
  9. Phanta

    Phanta Well-Known Member

    Joined:
    Jan 1, 2014
    Messages:
    2,555
    Ratings:
    +997
    Code:
    @START /i /high /b java -jar minecraft.jar
    ¯\_(ツ)_/¯
     
  10. MattM1PVP

    MattM1PVP Ex-HG Staff Member

    Joined:
    May 22, 2015
    Messages:
    2,148
    Ratings:
    +705
    Hopefully you become a Brawl coder and will actually help to do something to fix HG
     
  11. Phanta

    Phanta Well-Known Member

    Joined:
    Jan 1, 2014
    Messages:
    2,555
    Ratings:
    +997
    Actually, I just thought of something. Wouldn't this increace the niceness of the Launcher's JVM instance and not the actual game's?
     
  12. KirbysDreamLand

    KirbysDreamLand Well-Known Member

    Joined:
    May 17, 2015
    Messages:
    260
    Ratings:
    +77
    Nope. All child processes inherit the niceness value of the parent. They do not, however, inherit changes to that value after they are spawned. I thought of this during development too.
     
  13. williamthegreat

    Joined:
    Jun 13, 2015
    Messages:
    2
    Ratings:
    +0
    Why the sad face. Windows is amazing. But any IT technition you talk to with have a spot in their heart for Linux.
     
Loading...
Similar Threads Forum Date
How to get the anime section in iTunes [mac] Videos Dec 14, 2014
Thread Status:
Please be aware that this thread is more than 30 days old. Do not post unless the topic can still be discussed. Read more...