Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Memory Used, how to control this?


    Cardozz

    Recommended Posts

    Posted

    Hello there,

     

    I recently updated one of my scripts with some antiban features. Now when I compare it with one older backup file, the memory it's using is ridiculously jumping from 100 MB to 380 MB in no time, and then resets. It does this everytime a condition is met or a method is completed.

     

    It feels like this jump of about 300 - 400 MB memory usage is lagging the client a little bit, which then makes the script a bit less flawless.

     

    I wonder what can cause this memory jump, since I tried the exact same script version without the anti-ban feature in it whereas it still has these jumps (I can't seem to find the flaw).

     

     

    Thanks in advance!

    Posted

    The easiest way to find out what's wrong (without profiling) would be just to comment out parts of your script until you find what's using all the memory.

    Posted

    Yee that's what I did lol, ill try again and see what I can find. :)

     

     

    EDIT:

    Ok I found out what the problem was. It was a GameObject variable I created earlier in the method, but like far off where it's been used. That's what caused  the memory to freak out as it has to re-allocate the gameobject for the correct condition. :)

    Posted

    More memory - less cpu usage, basic rule for the bots basically.
    Unless you have memory leak

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.