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

Why this lag? #438

Open
PsycoYT opened this issue Dec 15, 2016 · 8 comments
Open

Why this lag? #438

PsycoYT opened this issue Dec 15, 2016 · 8 comments

Comments

@PsycoYT
Copy link

PsycoYT commented Dec 15, 2016

Why in the agar.io client there is no lag, even though all the graphics are activated?
Why if I activate the edges in cigar there is lag? Why does everything cause lag in cigar? Why in agar.io there is no lag? What is the difference of nodes?

Edited by @HAlexTM (corrected some grammar error)

@AlexDicy AlexDicy changed the title What? Why this lag? Dec 15, 2016
@AlexDicy
Copy link
Contributor

AlexDicy commented Dec 15, 2016

Our scripts are based on an old version of Agario, we're currently working to update it

@makandz
Copy link

makandz commented Dec 15, 2016

I'm pretty stupid so this is going to take a while.

@253153
Copy link

253153 commented Dec 28, 2016

@mastacoder Any clue as to what is causing the lag? I would like to work on making it lag-free, where should I start?

@AlexDicy
Copy link
Contributor

@deniskrop we're working on it, I actually know that the rendering of the text causes a lot of lag (just try to split in 40 cells with a name and mass activated)
But even the normal gameplay is affected but this may be caused by a lot of things like the messages sent by the client and that's why there is a lot of work behind, I just know that if I find a good server on Agar.io I'll never lag on my custom build and my connection isn't that good

@makandz
Copy link

makandz commented Dec 28, 2016

Pretty much the main focus I am on is names. Rendering of names (based on the people I've talked to) causes lag. What I have also noticed compared to the Agar.io client, the text of the cells seems to stutter (move around per pixel) much more than in Agar.io. So if you move your mouse a bit to the left, the text seems to jump up, down, left, right by around 1 pixel. It's not noticeable when zoomed out, but zoomed in you can clearly see it.

@253153
Copy link

253153 commented Dec 31, 2016

@mastacoder I also have issues with MultiOgar, when the player count gets over 100, the CPU on the server gets really high.

@Luka967
Copy link
Collaborator

Luka967 commented Dec 31, 2016

@deniskrop That's server-side and natural. Javascript is very robust but unoptimized. Fastest server implementation is nearest to the native platform's language; C++ for Windows, Objective-C for Mac, unsure for Linux (C++ too probably?). The bulky ones like Java, C# and Javascript offer large customizabilty but limited native optimization (unless you use C++ compiled JS).

@AlexDicy
Copy link
Contributor

AlexDicy commented Dec 31, 2016

@Luka967 Chromium-based browsers and Node.js use JavaScript v8 by Google that is completely based on C++

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

No branches or pull requests

5 participants