ct1996 Posted January 21, 2016 Share Posted January 21, 2016 As title indicates... my script runs OK, but super lags the client and requires Task Manager to kill OSBot, as everything is frozen. During this 'frozen' period, the RS client still loads and bots. Any ideas?? Quote Link to comment Share on other sites More sharing options...
toke up069 Posted January 21, 2016 Share Posted January 21, 2016 sounds like u need better ram ect in ur computer Quote Link to comment Share on other sites More sharing options...
ct1996 Posted January 21, 2016 Author Share Posted January 21, 2016 sounds like u need better ram ect in ur computer Hahaha, while this would eventually fix the issue... I just solved it by adding a small sleep-timer at the end of onLoop so it wasn't repeating instantly & hogging OSBot's RAM 1 Quote Link to comment Share on other sites More sharing options...
Chicken Wing Posted January 21, 2016 Share Posted January 21, 2016 Hahaha, while this would eventually fix the issue... I just solved it by adding a small sleep-timer at the end of onLoop so it wasn't repeating instantly & hogging OSBot's RAM You can just increase the int that onLoop returns, and it will sleep more between iterations 1 Quote Link to comment Share on other sites More sharing options...
ct1996 Posted January 22, 2016 Author Share Posted January 22, 2016 You can just increase the int that onLoop returns, and it will sleep more between iterations Lol, I wondered what that int did. Thanks. Quote Link to comment Share on other sites More sharing options...
AresScripts Posted January 25, 2016 Share Posted January 25, 2016 Lol, I wondered what that int did. Thanks. What is onLoop() returning? Quote Link to comment Share on other sites More sharing options...
lisabe96 Posted January 27, 2016 Share Posted January 27, 2016 What is onLoop() returning? The cycle (sleep) time Quote Link to comment Share on other sites More sharing options...
AresScripts Posted January 27, 2016 Share Posted January 27, 2016 The cycle (sleep) timei know what it does. Im asking him to make sure its not returning something like 5. Quote Link to comment Share on other sites More sharing options...
Prolax Posted January 27, 2016 Share Posted January 27, 2016 Should return rand(1000,1300); Quote Link to comment Share on other sites More sharing options...