Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Buy OSRS Gold

TRiLeZ

Reducing CPU and Memory Usage

Recommended Posts

This tutorial will teach users how to reduce CPU usage.

 

hrgwu.jpg

 

ZP67u.jpg

 

  1. Client Paint Delay
    • This settings controls how much delay TRiBot should give the client with every frame. The more to the left, the higher the FPS, resulting in more CPU being used. The more to the right, the lower the FPS, resulting in less CPU being used.
    • MOST SCRIPTS DON'T NEED 40 FPS TO BOT. MOST WILL BE FINE WITH 4-10 FPS. NO, THE CLIENT DOES NOT LAG WHEN YOU SLIDE THE BAR TO THE RIGHT. THAT IS DELAY, WHICH REDUCES CPU USAGE.
    • I recommend using between 40-100ms delay, depending on how good your processor is and if you want to save CPU. For my desktop, TRiBot uses about 6% CPU on average with 40ms delay. I'm not trying to run as many bots as I can, so I leave it at 40ms.
  2. Client Sleep Modifier
    • The more to the left, the more CPU usage. The more to right right, the lower the CPU usage. This setting is hardly even used within TRiBot, so just leave it at 1.0.
  3. Lite Mode
    • Use Lite Mode if you want to reduce CPU/memory usage.
  4. Minimize TRiBot When Not Interacting With It
    • Minimizing TRiBot will lower the CPU usage. If you aren't interacting with TRiBot, please minimize TRiBot.
  5. Max Heap Size
    • This controls how much memory you allow the Java Virtual Machine to use.
    • Please do not use more than 256mb per client that you run. Ex: Don't use more than 256mb if you are only running one client. Do not use more than 512mb if you are only running two clients. Do not use more than 1024mb if you are only running four clients.
    • Try using this formula for the amount you should allocate: 256MB + ((amount of clients - 1) * 128MB)
      • Warning: This formula isn't perfect.
    • The higher you set this value to, the more amount of RAM the Java Virtual Machine will use. If you give one client 1024MB of a heap size, expect higher RAM usage than you would when using 256MB.
      • TRiBot does not directly handle memory usage and allocation. The Java Virtual Machine is responsible for handling memory, and in a very complex way.
  • Like 12

Share this post


Link to post
Share on other sites

Why shouldn't I use more than 256mb when I have 1 client open. What will really happen if i have it on 1024mb? I Always seem to have it on 1024mb, and I don't see any problems with it running. (6GB RAM)

 

Using more gives the potential for the Java Virtual Machine to consume more. But it the memory usage doesn't bother or affect you, then feel free to continue using 1024mb.

Share this post


Link to post
Share on other sites

Did you follow the guide linked above?yes
What is the CPU usage before you start a script?15 to 25 percent
What is the CPU usage after you start a script? 95 to 100 percent
What script are you using? whunter
What version of TRiBot are you using? 1.79
What version of Java is TRiBot using? the latest version of java
What operating system are you using? windows 7 and 8 tried both
Do you experience high CPU usage with other scripts? yes
What is the "Max Heap Size" set to as defined in the TRiBot Login? 256
What is your Client Paint Delay? 40
Are you running lite mode?yes
Do you minimize TRiBot while botting?yes

 

I'm getting 100 percent cpu usage when only running 8 bots on a fx 8350 processor so something is obviously is going on here. Normally i would have at the most 30 to 40 percent cpu usage when running 8 bots. I've tried everything and talked to my friends and there having this same problem. After 10 or 15minutes after ive started my script my cpu usage just skyrockets to 95 to 100 percent. 

Share this post


Link to post
Share on other sites

for some reason, despite trying every method in enhancing "client" and settings changing and changed, I never had things modifed to at least Bot for more than 12 hours. Is there something with my account or something?

I don't understand what you are saying/asking here?

Share this post


Link to post
Share on other sites

I don't understand what you are saying/asking here?

thank you for replying. Well, I don't know how to fix things with TriBot.. Well,... Here's one of my troubles I have with Botting. Randoms, it seems to me even though after logging on, went to "Scripts" and click on the Random Responder thing, it appears to not respond with the Frog. I'm not even sure if this is the best place to report this to.. How do I fix issues like these?

Share this post


Link to post
Share on other sites

thank you for replying. Well, I don't know how to fix things with TriBot.. Well,... Here's one of my troubles I have with Botting. Randoms, it seems to me even though after logging on, went to "Scripts" and click on the Random Responder thing, it appears to not respond with the Frog. I'm not even sure if this is the best place to report this to.. How do I fix issues like these?

 

That's the auto responder, that's an option for the bot to auto respond to messages in the chatbox, it's unrelated to random events.

If you get stuck in a random event go to this topic to report it: https://tribot.org/forums/index.php?/topic/14490-random-event-solvers-need-accounts-information/

Edited by Nashua

Share this post


Link to post
Share on other sites

hey sometimes when botting i get lag and i find this

 

855ed7d41f62ec06b76a47dee883610e.png

 

as im sure u know theres only ONE java.exe in processes,

 

but for some reason sometimes theres more, 3 or 4? and i can close them but i never know which one is tribot,

 

but some how multiply!!! like rabbits!!!

any ideas on how to stop this? xx

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Similar Content

    • By LilAnge
      As the title suggests, when running the client with looking glass onto osbuddy, the FPS for tribot (only tribot not osbuddy also) tanks majorly.
      Does anyone know if theres a specific reason for this happening? It's definitely not my machine as the specs are totally OP for 8+ osbuddy clients. I'm currently using 14% of my CPU and 51% memory.
      Thanks in advance for the help
    • Guest
      By Guest
      Hi there I'm having a problem when I'm using a script with Tribot where I will see a line in the debug section of the program that says "java.lang.OutOfMemoryError: Java heap space" and the script will end. 

      Java version: jre1.8.0_161

      I've uninstalled all previous versions of java and then reinstalled to version 8, I've tried using OSBuddy and Looking Glass but I've had no luck. 

      I read some advice about dumping the heap and I've tried to do that but the option for heap dump is greyed out for me in VisualVM(see screenshot).

      Any help is welcome

    • By Wastedbro
      wastedSmither AIO
       

       
      Link:
       
      Features:
      - Multi Location for smelting (Falador, Al Kharid, Port Phasmatys)
      - Supports smelting of every bar, and can do cannonballs
      - Ring of forging support. Withdraws them from your bank and equips them.
      - Smiths any item. Daggers, knives, arrow tips, dart tips, 2h swords, nails, etc, etc.
      - Uses any type of bar for smithing. Bronze-Runite
      - Stops the script at a certain level so you can train carefully. (set at 100 to never stop)
      - Opens doors when needed
      - Starts from anywhere.
       
      Antiban Features:
      - ABCL 10
      - Randomizes the number it sends when asked how many bars to smelt or smith, instead of typing in the same number or the number of bars
      - Calculate, human-like wait times between changes in the interfaces, such as when the "Enter Amount" box appears, to simulate human reaction time.
      - Uses the "choose all" option in the bank for when the script needs to fill its inventory with an item.
      - Uses the "Make 10" option when smithing/smelting if the script has under 10 items
      - Smart algorithm to determine when the character is smithing/smelting. It instantly realizes it stopped smelting when a level is gained, etc.
      - *** Possible future update: Walking using the screen AND minimap ***
       
       
      Pricing + Link:
       
      - $8 / Lifetime / 20 instances (practically unlimited) -
       
       
      F.A.Q.:
       
      Q. Why use this over other smithing/smelting scripts?
      A. This script is designed to be the absolute best in efficiency, durability, and features. I always plan on having more features than the competition, and maintain the highest levels of antiban. Due to this being premium, I plan on keeping it 100% functional, 100% of the time if possible.
       
       
       
      * All feedback, suggestions, comments, etc are MUCH appreciated. 
    • Guest
      By Guest
      got a pretty beast comp but when using LG it just got pretty framey all the sudden after a few moments of use
    • By GoofyMcGoof
      This isn't going to be comprehensive or backed by expert knowledge, it's just a few general things I learned from having a low performance PC in the past
      1. Physically cleaning your pc - pcs collect a lot of dust and slow down the fans and suffocate your CPU making it run hotter, when it runs hotter your computer limits it's performance in an attempt to stop it from over heating. The best way to do this is get a can of compressed air, open your pc and spray all of the dust out. If you're really paranoid about breaking something you can touch grounded metal like a sink pipe or any metal that is grounded to discharge your static electricity lol. also try and keep your fans still when you're spraying them, having them spin from the compressed air could wear on the bearings
      Here are ways you should not do it: use a leaf blower, or a vacuum this risks the chance of creating static and messing up your computers motherboard, also do not get any water on it, don't try and clean things with a wet rag (obvious). 
       
      2. Tribot Settings - Visit this guide to tweak tri bot directly, I can attest that changing the client paint delay from 0 to 60 has made my cpu usage go from 100% to ~60%
      3. Startup - Press ctrl + r and type msconfig and go to start up tab, this will control what starts up with your computer, a lot of times people's computers are slow because a lot of unnecessary programs start up. You can remove everything here unless you truly want something to automatically start up
       
      4. Services - This step is similar to the last in that you will be removing more things that cause stuff to run on your computer. http://www.blackviper.com/service-configurations/ this link will show you what services are safe to remove, be more careful here then you were in start up because some things can actually mess stuff up. You can configure services by either going to msconfig and going to services tab and then checking "hide all microsoft services" this will hide all the important services that you don't want to disable. I recommend you search for "services" in windows and use that instead, black viper guides will go into more detail for all of this
       
      5. Defragging - You can search for the windows defrag tool or you can download a third party one like https://www.auslogics.com/en/software/disk-defrag/, I use the third party one and use the options optimize & defrag, this will clean up your harddrive and make things load faster
       
      6. CCleaner - You can use this https://www.piriform.com/ccleaner/download to clear cache and old unused files to free up space, it also has a registry scanner but in my experience reg cleaners do little to nothing when it comes to increasing performance
       
      If anyone has anything they want to add or clarify let me know
    • By pansongvita
      Babysit as in i will move mouse and click stuffs at random times while the bot do their bot.
    • By beake
      When running tribot, it uses a huge amount of CPU and the fan is constantly running... is there any way i can reduce this?
       
       
      I use a mac,  2.6 GHz Intel Core i7 processor and 8 GB 1600 MHz DDR3 memory 
  • Our picks

    • Gradle is a build tool used to accelerate developer productivity.

      We recently setup a Maven repository (TRiBot Central) to make it easier for scripters to create scripts. Check it out here: https://gitlab.com/trilez-software/tribot/tribot-central/-/packages

      Furthermore, we've released a simple Gradle project to make it easy to run TRiBot and develop scripts for it. Check it out here: https://gitlab.com/trilez-software/tribot/tribot-gradle-launcher

      The goals of TRiBot Central are to:

      Deliver updates to TRiBot faster


      Better organize TRiBot's dependencies (AKA dependancies)


      Make it easier to develop scripts for TRiBot


      Make it easier to use and run TRiBot


      Note: TRiBot won't be able to run scripts from within this project until TRiBot's next release.
        • Like
      • 8 replies
    • Hi everyone,

      I'd like to thank everyone for their patience in this transition period. Since last week, we've worked out the remaining bugs with this integration.

      Some users have still been having issues with connecting their forums account to their Auth0 account. To resolve this, we've imported all forums accounts into Auth0.

      Unfortunately, the accounts which were imported today were using an unsupported password hashing algorithm. Hence, random passwords were set during the import.

      What does this mean for me?

      If you've previously linked your forums account to your Auth0 account, you don't have to do anything. Nothing changes for you.


      If you haven't logged in via our new login yet,

      Try logging in with your forums email address and the last password you used


      If you are unable to login, please use the "Forgot password" tool on the login page:
      Follow the instructions to reset your password
       
        • thonking
        • Like
      • 13 replies
    • Hello everyone,

      Last week we tried to roll out Auth0 Login, but we lost that battle. Now it's time to win the war!

      Important changes

      When logging into the client, you'll now have to enter your Auth0 account credentials instead of your forums credentials

      Note: 2FA is still handled through your forums account (for the time being)



      Changes for existing users

      You'll have to link your Auth0 account to your forums account here: https://tribot.org/forums/settings/login/?service=11


      Auth0 accounts have been created for most existing users. Please use your forums email address and password to login.



      Important notes

      Make sure to verify your email address upon creating a new Auth0 account


      When we mention your Auth0 account, we mean your account used for auth.tribot.org as displayed below
      • 81 replies
    • To better support the upcoming changes (TRiBot X, new repository), we're switching our login handler to Auth0. Instead of logging in with the standard form, you'll now be required to login through our Auth0 application.

      All existing accounts which have been used within approximately the past year have been imported into Auth0 using the same email and password combination which has been stored on the forums.

      What does this mean for users?

      Your account credentials are now even more securely stored


      You'll be able to login via Facebook, Google, and others in the future


      Is there anything users have to do differently now?

      Existing users: You'll have to login with the standard login, open your Account Settings, then link your Auth0 account


      New users: You'll be redirected to our Auth0 app (auth.tribot.org) where you'll be able to create an account


      Why was this change made?

      The new apps we are creating (such as the new repository) aren't able to use the forums to handle user logins


      To centralize all user accounts in one area


      To ensure that the client login doesn't go down when the forums are having problems


      To speed up our development


      Other considerations

      There's no documentation or official support for using Invision Community combined with Auth0, so there are still a few kinks we're working out


      We're in the works of creating an account management panel specifically for Auth0 accounts (ETA August)


      It's not possible to change email addresses for the time being (this will be resolved this August)


      Changing passwords is a weird process for the time being. To change your password, you'll have to use the "Don't remember your password" tool on the Auth0 login page
        • Like
      • 11 replies
    • Over the past month, we've been working hard on TRiBot's new repository - a much needed update. This change has been deemed necessary for TRiBot X, and will allow us to really speed up development of all aspects of TRiBot.

      Today we are going to share what we've been working on!


      Now you must be wondering what kind of features the new repository will have.... well, you'll have to be patient for a little while longer. We're still figuring out various technical aspects so we can't provide answers to all possible questions. We're also focusing on development rather than writing about it so that everyone can get access to our latest developments at lightning speed. I will however answer a few users' questions.

      We're planning on a release of this early to mid August, giving users some goodies before TRiBot X's release.

      Thank you all for being patient. I hope everyone is excited as much as I am!
        • Like
      • 17 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...