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
  • General principles for scripting and improved performance?


    Recommended Posts

    Hi all,

    I have been scripting for just over a month now and have to say that I really appreciate the Dreambot API and how intuitive it is to use (props to the devs!).

    Are there any general principles to apply when structuring a script and ensuring a decent level of performance? Performance could cover: CPU consumption, Antiban, refactoring methods etc.

    Link to comment
    Share on other sites

    Hey there, glad to hear you're enjoying the client/API :)

    As to your script performance questions, I'd suggest using a profiler (VisualVM works well and is free) to profile the client while it's running your script. Using a profiler is the best way to see exactly where the hot spots in your script are, and should give you a much better idea of where things could be improved.

    On the client's side, you can lower the FPS in the client settings for some solid gains in performance, but be aware different scripts can be more affected by lower FPS than others. As always it's best to measure and determine if the cost/benefit lines up for your needs.

    Hope that helps!

    Link to comment
    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

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