-
Notifications
You must be signed in to change notification settings - Fork 49
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
Performance Concerns with CUWO #31
Comments
cuwo uses async networking, so it won't need multithreading. |
You could try to decrease FPS in the constants.py from 50 to e.g. 25. Had no issues so far. |
I begun adding performance improving features like a change flagging system so that e.g. only changed entities have to be sent to clients that are near it. Also I decreased time broadcasting interval. |
This should be fixed in trunk with the new partial entity updates. Can you confirm? |
I don't think that it changed much because there have other optimizations be done first. Also is_bit_set before every read_x block isn't the best thing to improve performance. |
It did fix it. According to Kainzo, CPU usage went from 80% to 30% on a server with 25 players. This is more than acceptable. |
Okay then it has brought something but the things that are implemented yet are very basic. We have to think more about when also e.g. mob movements/attacks, distances, damage values, effects need to be calculated or many other performance critical things need to be done when implementing additional functionality in the future to get everything working like the original server and even better things. |
Look, provide profile data if you think you have found a bottleneck. Otherwise your concerns are unfounded. We do not make wild guesses - we profile, and optimize from those results. Also, check the issue I closed about your pull request, it makes a note of how your changes break the protocol. |
Thanks for fixing this Matpow2 - I can confirm that the cpu went from 90% to 30% with your changes. |
Server = pvp.herocube.net
Machine Specs = Xeonz 3.6ghz / 32GB ram / SSD with 1Gbps port.
Getting severe lag at times and the process for CUWO hits near 100%. I don't believe there is any multi-threading in at all and everything is being done on the main thread.
Just putting this out here because it is an issue and it is my due diligence to report :)
The text was updated successfully, but these errors were encountered: