-
Notifications
You must be signed in to change notification settings - Fork 111
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
Comments
Our scripts are based on an old version of Agario, we're currently working to update it |
I'm pretty stupid so this is going to take a while. |
@mastacoder Any clue as to what is causing the lag? I would like to work on making it lag-free, where should I start? |
@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) |
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. |
@mastacoder I also have issues with MultiOgar, when the player count gets over 100, the CPU on the server gets really high. |
@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). |
@Luka967 Chromium-based browsers and Node.js use JavaScript v8 by Google that is completely based on C++ |
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)
The text was updated successfully, but these errors were encountered: