Dungeon lags terribly
- jayhova
- Posts: 924
- Joined: Wed Jul 19, 2017 7:54 pm
- Contact:
Dungeon lags terribly
I noticed on a recent dungeon crawl that the dungeon is very laggy. This is so bad that sometimes I will open the spell book and be unable to cast the spell because DFU does not see my double click due to the lag. I found this rather surprising. Lag is directly related to the direction I am facing but not to the items in the scene. I can for instance be in a closed off room and have the same issue. I am curious if anyone else has the same issue.
- Attachments
-
- SAVE39.zip
- (202 KiB) Downloaded 82 times
Remember always 'What would Julian Do?'.
- pango
- Posts: 3358
- Joined: Wed Jul 18, 2018 6:14 pm
- Location: France
- Contact:
Re: Dungeon lags terribly
With your save, and in the direction you're facing, I do experience some low fps. But it depends a lot on mods.
No mods: 260 fps
Fully modded: 31 fps
(obtained using "tdbg" in the console; and with vsync disabled)
No mods: 260 fps
Fully modded: 31 fps
(obtained using "tdbg" in the console; and with vsync disabled)
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
- Interkarma
- Posts: 7247
- Joined: Sun Mar 22, 2015 1:51 am
Re: Dungeon lags terribly
Also be sure that dungeon shadows are disabled.
- jayhova
- Posts: 924
- Joined: Wed Jul 19, 2017 7:54 pm
- Contact:
Re: Dungeon lags terribly
I assumed that was the case. I tried my setup with no mods and it was still very laggy. I found the mods were not the main problem.
Remember always 'What would Julian Do?'.
- jayhova
- Posts: 924
- Joined: Wed Jul 19, 2017 7:54 pm
- Contact:
Re: Dungeon lags terribly
That was it. Dungeon shadows totally killed my performance. It looks like shadows I can't even see are making the game unplayable. The game lags in areas I would not expect shadow generation to affect. I really like the shadows but it seems like the more of the dungeon I explore the worse it gets.
Remember always 'What would Julian Do?'.
- jayhova
- Posts: 924
- Joined: Wed Jul 19, 2017 7:54 pm
- Contact:
Re: Dungeon lags terribly
I get similar, if slightly lower, FPS with mods (no shadows)
With no mods and shadows turned on I get very low number 3-5 FPS
I have not tested with both on but I imagine around 1 FPS or worse.
Remember always 'What would Julian Do?'.
- Interkarma
- Posts: 7247
- Joined: Sun Mar 22, 2015 1:51 am
Re: Dungeon lags terribly
Thanks for letting me know. The core issue is the default shadow distance is too high for that number of lights. which hits the CPU pretty hard.
I've already trialled some optimisations that work great, but I'm holding these for part of a larger lighting review sometime in alpha.
I've already trialled some optimisations that work great, but I'm holding these for part of a larger lighting review sometime in alpha.
- jayhova
- Posts: 924
- Joined: Wed Jul 19, 2017 7:54 pm
- Contact:
Re: Dungeon lags terribly
From what I can tell the speed seems to be affected by things not actually in the scene. Stranger still is going into the spell book and having lag still going on (I'll actually look at this with the frame rate tool in a bit). The same seems to happen in the 3D map. Again I'll try and hunt down frame rates. It would be easier if I didn't have to exit out of the game every time I wanted to test a different thing.
Remember always 'What would Julian Do?'.
- King of Worms
- Posts: 4753
- Joined: Mon Oct 17, 2016 11:18 pm
- Location: Scourg Barrow (CZ)
- Contact:
Re: Dungeon lags terribly
Ive reported the same problem some months ago. It indeed is caused by light shadows enabled.
And its CPU bound, not gpu.
Its strange few lights can kill a cpu, something is off there. Also, shadow resolution/quality settings do NOT change the framerates in this case,..
And its CPU bound, not gpu.
Its strange few lights can kill a cpu, something is off there. Also, shadow resolution/quality settings do NOT change the framerates in this case,..
DREAM Nexus https://www.nexusmods.com/users/73250038?tab=user+files
DREAM Forums viewtopic.php?f=27&t=1168
DISCORD: king_of_worms_cz
DREAM Forums viewtopic.php?f=27&t=1168
DISCORD: king_of_worms_cz
- Interkarma
- Posts: 7247
- Joined: Sun Mar 22, 2015 1:51 am
Re: Dungeon lags terribly
It's related to number of lights and shadow distance specifically. As I said above, I already have some optimisations that work great. I'm holding this for alpha lighting review in a couple of months.