[Linux] Sudden FPS drop
rkfg
Russia Join Date: 2013-09-03 Member: 187744Members, Reinforced - Supporter, Reinforced - Silver, Reinforced - Gold, Reinforced - Diamond, Reinforced - Shadow
For no visible reason FPS drops significantly to 15-20 midgame, r_stats shows high GPU waiting (flapping from 30 to 150 ms). I thought it was something with GPU overheating and throttling but it's not that, temp is less than 60°C (for my 560 GTX it's quite cool). Fortunately switching to Fullscreen Windowed and then back to Windowed immediately fixes that and I have 35-60 FPS again. Fullscreen Windowed has noticeable worse performance for me, 10-15 FPS less than just Windowed. I'm playing on almost everything maxed up except atmospherics, AA and AO. Here's log.txt: http://pastebin.com/W0p9q2sp
Comments
NS2 doesn't play well with overlays at all, so that made sense..
Are you able to reliably reproduce this?
If so, please get a plog:
Type p_logall in the console (the ~ key) when you are playing a game with others.
Around at least 5 minutes of capturing your issue, quit the game and navigate to your hidden %appdata%/natural selection 2/ folder and then compress/zip the plog file. (the file type will show as ".plog")
Upload that file on the internet somewhere and link it here please
This will give me a frame by frame analysis of every single thing that's going on, and what is causing the low FPS.
Thanks!
EDIT: That path obviously doesn't pertain to you, since you are running linux, so wherever linux stores your log.txt thats where you will find this plog. Alternatively you can name your plogs too.. p_logall testingfps in the console will make a file called testingfps.plog
But it's reproducible enough. I did some plogging and analyzing but didn't find anything useful, most of the time was spent on DrawIndexedPrimitives so it's inside the driver I guess. Those plogs were very short and inaccurate and the FPS drop was not that big that time so I'll try again and post them. Also, is there a way to stop p_logall without exiting the game? Found this here: p_endlog Ends the log started with p_logall and writes it to a file
May help somebody one day, I've searched the forum for this to no avail.
As I said there's nothing interesting there, an obvious GPU load. I heard GPU coolers went wild and it may point to overheating and throttling but immediately after I've switched the fullscreen mode to Fullscreen Windowed everything became fast, smooth and quiet. It was after I've stopped the logging so it's not there. I can only guess but for me it looks like a heavy redundant rendering which is reset after the display mode change.
I also noticed that I had Compton (compositing manager) running, I'll try more without it. Can't remember if I used it before when I had an FPS drop.
Thanks for the legwork
Might be worth running a realtime log on what your system is accessing when this occurs to see if some overlay or background app is accessing the GPU, making NS2 unable to recover from it. (is there an equivalent to processexplorer for linux?)
There are various monitoring tools available on GNU/Linux but I'm not sure what I should look for. I have no overlays except the Steam one (which shouldn't be a problem as was discussed before) and overall my setup is pretty simplistic. I'll try more tests with some compton's options.
Before you draw any conclusions about any particular set of video settings you should try exiting the game and starting it fresh with those settings. I can run at about 80 FPS with max video settings but sometimes if I decrease the video settings, even to the minimum settings, my FPS will drop to a range of 10-25 until I restart the game. This is on GNOME 3.8 w/ compositing on.
Let me know what you discover though in regards to this FPS drop (if it continues to point to composition)
@eyeris
Interesting observation, i've heard reports of opengl doing this before in NS2.. will look into it.
Also tried in-game VSync and had like 30 FPS cap, it only raised to 50 near the walls (it was ready room which always has nice FPS). After turning double buffering off it stabilized near 45.
It contains playing with low fps and then switching to fullscreen and back after which I've had 40-50 FPS. Interestingly, now most of the time is spent inside the Present method instead of DrawIndexedPrimitives as it was before with compositing enabled.
@NeXuS I see no overheating regardless of texture setting. It's on 70-72°C in game and throttling happens or not strictly because of lots more of texture data as I see it. 560 Ti allows up to 98°C as specs say. But anyway I can run nvidia-smi -l on the tablet via SSH to check it without switching windows. It cools pretty fast in 5 seconds after lowering down the stress.
I also have the 560 ti. Usually have +100 fps on lower settings. Then, not every time but some times, when the skulks attacks me, I experience a fps drop to like 15-50 fps for a very short period of time, like for a hundred of a second.
Glad that its fixed... but i still wonder if it was based on /exclusive to the 560ti..
Was told to turn off draw damage in general settings and that worked really well havnt experienced any more of those short freeze lags at all. But it is abit annoying though not being sure of how much damage you do.
But, I've not always had this problem. Ive been playing a long time without any problems at all and this just appeared a couple of weeks back.
I play on:
i5 2500k 3300mhz
16gb 1600mhz ddr3
asus gtx 560ti
And I havent noticed anything else about it getting slow or that something is wrong with it. Also monitored cpu and gpu temp while playing, cpu max 79 celsius and gpu max 60-70 i think. I also uninstalled all programs installed from 2 months back until today.