agario-client icon indicating copy to clipboard operation
agario-client copied to clipboard

Make agario-client less cpu intensive

Open agarsearcher1985 opened this issue 8 years ago • 5 comments

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

agarsearcher1985 avatar Apr 17 '16 13:04 agarsearcher1985

You cant optimize it for multicore. Nodejs is single threaded.

q3wzeck avatar Apr 17 '16 18:04 q3wzeck

Actually yes.. use JXCore

hassanila avatar Apr 18 '16 03:04 hassanila

@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).

pulviscriptor avatar Apr 22 '16 09:04 pulviscriptor

@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.

henopied avatar Apr 23 '16 13:04 henopied

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.

Hazardous16 avatar May 06 '16 23:05 Hazardous16