DCHILLING Posted September 26 Share Posted September 26 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? Quote Link to comment Share on other sites More sharing options...
Fanny Posted September 26 Share Posted September 26 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 1 Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted September 26 Share Posted September 26 If I'm correct the resources used is mainly for loading and caching the map data 1 Quote Link to comment Share on other sites More sharing options...
DCHILLING Posted October 6 Author Share Posted October 6 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 Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted October 7 Share Posted October 7 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 1 Quote Link to comment Share on other sites More sharing options...