Jump to content
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 16

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • 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
    • By cwilson0005
      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 segama
      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 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 
    • By AidenEsco
      Hey guys! I'm looking to get started with a gold farm and making my own scripts, but I need some help using TRiBot. 
      Relevant comp specs:
      i5-6600k
      8bg ddr4 ram
      Windows 10 Pro 64 bit
      Raedon R9 390
      First of all, I was under the impression that with an i5-6600k I would be able to run atleast 20 bots, but I get to 100% cpu with just 5 bots open, and thats with TRiBot minimized and graphics disabled. I know somethings wrong but no idea how to fix it.
      Also, does it make a difference if I use one client with 5 tabs or 5 clients with one tab? So far ive been using 1 client with 5 tabs, but if that's the issue with cpu ill change.
      Ive been told to use 512 mb per bot, but if i get to my endgame goal of 20 bots form my pc, wont that be too much? How much ram should I be allocating per bot?
      I dislike the suicide botting method, I prefer long term accounts, so I've been looking into combat such as GDK and Wyverns and possibly writing my own script (I have a decent knowledge of java, just need to learn API). But to keep these long term accounts unbanned for as long as possible, whats reccommended? Ive heard no more than 8 hours a day with a break or two, but that still seems a bit risky. I was thinking about 2-3 hrs in morning and 2-3 at night, does that sound like a good strategy?
      For proxies, Ive tried Proxyfish and I mean I got working proxies, but somewhat expensive and not sure if I should continue buying there, whats the best place to buy proxies? socks5proxies.net also looks good, especially since theyre focused on TRiBot, anyone had experience with them?
      Also, how many accounts would it be safe to run per proxy? So far ive only been doing one proxy one acc, but until I start seeing profits I feel like I'm just spending a bunch of money... I was thinking 2-3 accts per proxy, what do you guys think about that?
      When I open TRiBot, my Java version always goes to the JDK, even though I have set my JAVA_HOME variable to the jre I have installed, any advice on that? Possibly a reason for more cpu usage?
       
      Thank you in advance for all your help, I look forward to botting and sharing my experiences with you guys!
      @Usa
      @TRiLeZ
      @iFluffee
  • Our picks

    • This release will:

      Fix Settings UI placement bug


      Fix game object location bug


      Fix small layout bug making the client shift up and down


      Fix client crashing bug where loading the client with a small display area will cause the client to crash


      Fix annoying Linux bug relating to painting events and peers


      Fix settings saving bug where settings are saved to disk more often than they should


      Fix RSInterface#isBeingDrawn bug affecting a limited amount of people


      Drop Java 1.7 bytecode version for 1.8


      Important: Since the downloadable RS client uses Java 7, it will no longer be compatible with Looking Glass. To make up for this, we will add support for using other clients such as RuneLite (at a later date).


      This change was necessary to allow us to use Java 8 syntax. It also paves the way for Java 9/10/11 support.
        • Like
      • 38 replies
    • This update will:

      Fix the RSMenuNode bug which also fixes the bug with bank opening


      Fix the incorrect object positions bug


      Fix and re-enable the LG Objects API Accelerator


      Fix the RSObject#getAllTiles bug
        • Like
      • 22 replies
    • Try our development release by checking "Development Release" on the TRiBot Loader. Note that these new features are currently in beta.

      This release features:

      Re-sizable mode support for both LG and the regular client


      Slightly improved login bot


      Removed final access modifiers from API classes


      Added RSServer hook wrapper to get the client's cached list of server/world info


      [NEW] Bug fix for intelligent banking


      [NEW] Improvement to the stability of LG over time


      [NEW] Vastly improved the reliability and speed of Screen#getColorAt on both LG and the regular client


      [NEW] Fix LG login problems


      [NEW] Fixed re-sizable mode container bug


      [NEW] Fixed re-sizable mode mouse bug


      [NEW] Use of public constants in the Banking API


      [NEW] Use of other various constants such as Projection#NULL_PT and Screen#EMPTY_COLOR



      More features to come very soon!

      Please test it and let us know here if there are any new bugs introduced in this release.
        • Thanks
        • Like
      • 12 replies
    • Try our development release by checking "Development Release" on the TRiBot Loader. Note that these new features are currently in beta.

      This release features:

      Re-sizable mode support for both LG and the regular client


      Slightly improved login bot


      Removed final access modifiers from API classes


      Added RSServer hook wrapper to get the client's cached list of server/world info


      Bug fix for intelligent banking


      Improvement to the stability of LG over time



      More features to come very soon!

      Please test it and let us know here if there are any new bugs introduced in this release.
        • Thanks
        • Like
      • 10 replies
    • - Updated the banking API to use the game item cache instead of interfaces. This will result in less delay, greater efficiency, and greater reliability. LG will especially benefit from this update.
      - Fixed a bug with the Grand Exchange API relating to searching for items.
        • Like
      • 5 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×