sleepTime: Difference between revisions
Jump to navigation
Jump to search
(Created page with '; sleepTime (<microseconds>) : Sleeps for the specified microseconds every program cycle to conserve CPU cycles. Setting it to a higher value will make Kore use less CPU power, …') |
mNo edit summary |
||
Line 1: | Line 1: | ||
; sleepTime | ; sleepTime <microseconds> | ||
: Sleeps for the specified microseconds every program cycle to conserve CPU cycles. | : Sleeps for the specified microseconds every program cycle to conserve CPU cycles. | ||
Revision as of 13:42, 16 August 2012
- sleepTime <microseconds>
- Sleeps for the specified microseconds every program cycle to conserve CPU cycles.
Setting it to a higher value will make Kore use less CPU power, but also less responsive. If you run just one or two bots, then you should leave it at the default value of 10000. However, if you run many bots, and CPU usage is a concern, then you should set it to a higher value. In that case, a value of 50000 is recommended. It's generally not recommended to set the value higher than 200000, as it will make your bot very unresponsive.