agario-client
agario-client copied to clipboard
Make agario-client less cpu intensive
Are there any tips on reducing the cpu usage? I already removed all unused packets in agario-client. I'm already using node cluster but every worker gets 100% cpu usage with more than 100 bots. How can I optimize it for multi core cpus?
Thanks for your help
You cant optimize it for multicore. Nodejs is single threaded.
Actually yes.. use JXCore
@agarsearcher1985 Node.JS is just not best thing for optimal CPU usage, its more for fun coding (in my opinion). If you want low CPU usage you need to use something other, like C or C++ but no fun there (in my opinion).
@agarsearcher1985 This is not actually entirely true you can use modules like webworker-threads to help with cpu usage. Also for just bots you may want to disable ball tracking by overriding a few packet handlers.
I use a cloud program, and to create my bots, c9.io as it has an IDE and you can work on projects together with your friends or partners. Also you can debug and run a program without using PC usage.