Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make agario-client less cpu intensive #161

Open
agarsearcher1985 opened this issue Apr 17, 2016 · 5 comments
Open

Make agario-client less cpu intensive #161

agarsearcher1985 opened this issue Apr 17, 2016 · 5 comments

Comments

@agarsearcher1985
Copy link

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

@q3wzeck
Copy link

q3wzeck commented Apr 17, 2016

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

@hassanila
Copy link

Actually yes.. use JXCore

@pulviscriptor
Copy link
Owner

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

@henopied
Copy link
Contributor

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

@pulviscriptor pulviscriptor mentioned this issue May 3, 2016
@Hazardous16
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants