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
  • Try asking for help in the chatbox
  • Memory Used, how to control this?


    Cardozz
     Share

    Recommended Posts

    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!

    Link to comment
    Share on other sites

    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. :)

    Edited by Cardozz
    Link to comment
    Share on other sites

     Share

    ×
    ×
    • 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.