September 26, 20241 yr Hello OSBot community, I'm making my second script, which includes fishing and cooking with banking. I've seen answers to other optimization posts, that web walking accounts for most of the memory usage when running a script. Is this true? If so, does garbage collector discard this resource or do I need some special way of removing it if it is not used? Also, does returning higher waiting values in onLoop() function make the script less demanding or just slower?
September 26, 20241 yr 1 hour ago, DCHILLING said: Also, does returning higher waiting values in onLoop() function make the script less demanding or just slower? It depends a lot on what the onLoop() function does. if you just have simple logic such as if/else or switch then it is not going to make too much difference If you have more complex logic, or lots of variable instanciation on each loop then it will be more demanding if it loops quicker Generally, it is not going to make much difference for most people but it depends how many bots you plan to run and your system specs I guess Dunno about webwalking memory usage though, I don't have any issues with memory usage personally
September 26, 20241 yr If I'm correct the resources used is mainly for loading and caching the map data
October 6, 20241 yr Author On 9/26/2024 at 1:59 PM, Khaleesi said: If I'm correct the resources used is mainly for loading and caching the map data Do you know of a way to discard this cache? I've got scripts where walking is infrequent or is used once to get in position. It would be really nice to have as much memory on the machine to accompany as many bots possible 😃
October 7, 20241 yr On 10/6/2024 at 10:37 AM, DCHILLING said: Do you know of a way to discard this cache? I've got scripts where walking is infrequent or is used once to get in position. It would be really nice to have as much memory on the machine to accompany as many bots possible 😃 Not sure if possible without a restart
Create an account or sign in to comment