DCHILLING Posted Thursday at 07:39 AM Share Posted Thursday at 07:39 AM 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 Thursday at 09:37 AM Share Posted Thursday at 09:37 AM 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 Thursday at 10:59 AM Share Posted Thursday at 10:59 AM 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...