-
Notifications
You must be signed in to change notification settings - Fork 17
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
I still get 130% CPU usage after 20 hours of uptime #4
Comments
I was also getting over 100% CPU on my game server with no clients connected immediately after starting the server. I traced this down using the built in node profiler to figure out that node-gameloop was the culprit. After downgrading to 0.1.0, the problem went away and CPU levels went back to normal. I definitely think this is a major bug in this node-gameloop and makes the current version unusable in production environments. Below is my CPU prorofile, looks like it might be the use of
|
tracked down the exact line that is causing the CPU issue the This is confirmed by my CPU profiling above. |
@Jared-Sprague Hi I am going to close this issue as this is my fault. I had some memory leak in my game logic code. Now it is fixed. The problem is not related to this module. Your problem looks a bit different than mine. Feel free to create a new issue if you like. |
For the first few hours I can play without any problem. But then the game become very slow. CPU usage is up to 130%. Any idea what is wrong with the code? I think using
setImmediate(gameloop)
is the culprit.The text was updated successfully, but these errors were encountered: