Closed ewaldbenes closed 6 years ago
Where do you see high CPU consumption ?
I started profiling the Swing app with VisualVM because the game play felt laggy.
I mean "high CPU load" in terms of that two methods residing in the "sound" package use 97% of the app's CPU time compared to all other methods. Everything is happening in one core. Also the frame rate does not get higher than 25 fps.
This seems suspicious to me. I thought better to report it in case others expierence the same or want to have a look at it.
You are looking at the wrong column. The sound stuff uses 97% of real time while its using just 101ms of cpu time. I made this screenshot in the Threads tab. You can see there that the sound threads are mostly waiting. This (obviously) takes real time but does not take any CPU time. There are two ways of getting low fps in jsettlers:
Yeah, you're totally right. I looked into the wrong column. "Sound causing high CPU load"... That's why I was a little confused. Maybe I should have stopped working earlier. Please forgive! ^^
While fixing #742 I did some CPU and memory profiling. Two methods eat up 97% of the app's CPU consumption. I think this should be looked at.