[Linux] Low framerate and bad frametime

Post here if you need help getting started with Daggerfall Unity or just want to clarify a potential bug. Questions about playing or modding classic Daggerfall should be posted to Community.
Post Reply
DaggUser
Posts: 4
Joined: Sun Jan 14, 2024 12:19 am

[Linux] Low framerate and bad frametime

Post by DaggUser »

Hello, I'm new to DFU. I installed it as recommended, using DaggerfallGameFiles. I only have a few UI and bug fix mods (convenient quest log, climates travel map, npc health indicator, etc.).

My problem is that the game dips bellow 60fps and even when running at 60fps frametime is all over the place and the game stutters and therefore is not smooth. Thing is, I play at lowest settings and with retro rendering at 640x480... I capped the framerate in settings.ini, activated and deactivated v-sync but no improvement.

My specs :

- AMD Ryzen™ 5 3450U with Radeon™ Vega Mobile Gfx × 8
- 16.0 GiB of RAM
- Fedora 39

I tried disabling all my mods, but no improvement either. Are any of you guys using linux and having framerate issues ? I am new to linux gaming so maybe I should install drivers, as mangohud indicates OpenGL... Should it be Vulkan ? I'm not sure.

My settings.ini :
Spoiler!
[Daggerfall]
MyDaggerfallPath = ...
MyDaggerfallUnitySavePath =
MyDaggerfallUnityScreenshotsPath =

[Video]
ResolutionWidth = 1920
ResolutionHeight = 1080
RetroRenderingMode = 2
PostProcessingInRetroMode = 0
UseMipMapsInRetroMode = False
RetroModeAspectCorrection = 2
PalettizationLUTShift = 1
VSync = True
TargetFrameRate = 70
Fullscreen = True
ExclusiveFullscreen = False
RunInBackground = False
FieldOfView = 90
MainFilterMode = 0
QualityLevel = 0
ShadowResolutionMode = 0
DungeonLightShadows = False
InteriorLightShadows = False
ExteriorLightShadows = False
AmbientLitInteriors = False
MobileNPCShadows = False
GeneralBillboardShadows = False
NatureBillboardShadows = False
DungeonShadowDistance = 20
InteriorShadowDistance = 30
ExteriorShadowDistance = 50
EnableTextureArrays = True
RandomDungeonTextures = 0

[Effects]
AntialiasingMethod = 0
AntialiasingFXAAFastMode = False
AntialiasingSMAAQuality = 0
AntialiasingTAASharpness = 0
AmbientOcclusionEnable = False
AmbientOcclusionMethod = 0
AmbientOcclusionIntensity = 1.2
AmbientOcclusionThickness = 1
AmbientOcclusionRadius = 0.3
AmbientOcclusionQuality = 2
BloomEnable = False
BloomIntensity = 5
BloomThreshold = 0.7
BloomDiffusion = 6
BloomFastMode = False
MotionBlurEnable = False
MotionBlurShutterAngle = 270
MotionBlurSampleCount = 8
VignetteEnable = False
VignetteIntensity = 0.6
VignetteSmoothness = 0.3
VignetteRoundness = 0.5
VignetteRounded = False
DepthOfFieldEnable = False
DepthOfFieldFocusDistance = 3.8
DepthOfFieldAperture = 5
DepthOfFieldFocalLength = 50
DepthOfFieldMaxBlurSize = 1
DitherEnable = False
ColorBoostEnable = False
ColorBoostRadius = 25
ColorBoostIntensity = 1
ColorBoostDungeonScale = 1.5
ColorBoostExteriorScale = 0.2
ColorBoostInteriorScale = 0.5
ColorBoostDungeonFalloff = 3.5

[Audio]
AlternateMusic = False
SoundFont =

[ChildGuard]
PlayerNudity = True

[GUI]
ShowOptionsAtStart = True
GUIFilterMode = 0
VideoFilterMode = 0
Crosshair = True
SwapHealthAndFatigueColors = True
DimAlphaStrength = 0.5
EnableToolTips = True
ToolTipDelayInSeconds = 0
ToolTipBackgroundColor = 404040D2
ToolTipTextColor = E6E6C8FF
ShopQualityPresentation = 0
ShopQualityHUDDelay = 4
ShowQuestJournalClocksAsCountdown = False
EnableInventoryInfoPanel = True
EnableEnhancedItemLists = True
EnableVitalsIndicators = True
EnableModernConversationStyleInTalkWindow = False
IconsPositioningScheme = classic
HelmAndShieldMaterialDisplay = 0
InteractionModeIcon = classic
EnableArrowCounter = True
AccelerateUICopyTexture = False
SDFFontRendering = True
EnableGeographicBackgrounds = True
DungeonExitWagonPrompt = True
TravelMapLocationsOutline = True
IllegalRestWarning = True
LargeHUD = False
LargeHUDDocked = True
LargeHUDUndockedScale = 0.75
LargeHUDUndockedAlignment = 0
LargeHUDUndockedOffsetWeapon = False
LargeHUDOffsetHorse = True
CanDropQuestItems = False
EnableQuestDebugger = False
QuestRumorWeight = 50
DisableEnemyDeathAlert = False
HideLoginName = False

[Spells]
EnableSpellLighting = True
EnableSpellShadows = True

[Controls]
InvertMouseVertical = False
MouseLookSmoothingFactor = 0.4
MouseLookSensitivity = 8
JoystickLookSensitivity = 1
JoystickCursorSensitivity = 1
JoystickMovementThreshold = 0.9
JoystickDeadzone = 0.1
EnableController = True
HeadBobbing = True
Handedness = 0
WeaponAttackThreshold = 0.005
WeaponSensitivity = 1.0
MovementAcceleration = False
ToggleSneak = True
WeaponSwingMode = 1
CameraRecoilStrength = 3
SoundVolume = 1
MusicVolume = 0.51
InstantRepairs = False
AllowMagicRepairs = False
BowDrawback = True

[Map]
AutomapNumberOfDungeons = 5
AutomapDisableMicroMap = False
AutomapRememberSliceLevel = False
AutomapAlwaysMaxOutSliceLevel = False
ExteriorMapDefaultZoomLevel = 8
ExteriorMapResetZoomLevelOnNewLocation = True
AutomapTempleColor = 457DC3FF
AutomapShopColor = BE5518FF
AutomapTavernColor = 557530FF
AutomapHouseColor = 453C28FF
DungeonMicMapQoL = True
DunMicMapInnerColor = D487D0FF
DunMicMapBorderColor = FAB403FF

[Startup]
StartCellX = 109
StartCellY = 158
StartInDungeon = True

[Experimental]
TerrainDistance = 1
TerrainHeightmapPixelError = 5
SmallerDungeons = True
CustomBooksImport = True
AssetCacheThreshold = 25

[Enhancements]
LypyL_GameConsole = True
LypyL_ModSystem = True
AssetInjection = True
CompressModdedTextures = True
NearDeathWarning = True
AdvancedClimbing = True
AlternateRandomEnemySelection = True
DungeonAmbientLightScale = 1
NightAmbientLightScale = 1
PlayerTorchLightScale = 1
PlayerTorchFromItems = False
CombatVoices = True
EnemyInfighting = True
EnhancedCombatAI = True
GuildQuestListBox = True
BowLeftHandWithSwitching = False
LoiterLimitInHours = 12
Thanks for your help.

User avatar
Interkarma
Posts: 7247
Joined: Sun Mar 22, 2015 1:51 am

Re: [Linux] Low framerate and bad frametime

Post by Interkarma »

Hey there. :) Thankyou for listing specs and including settings. Can you also confirm version (I'm assuming 1.0).

Your specs should be generally OK, and I don't see anything alarming in your settings. My Linux test notebook is a 2015 hunk of junk with worse specs and generally plays fine. I wouldn't say it gets a consistent 60 fps, but I don't expect it to based on the age.

It is normal to experience some choppiness on load or after fast travelling as gamedata is read and converted at runtime from DOS into something the engine can use. Game can also stutter when moving between world cells. Things should even out after a few seconds once the area loads. An SSD will perform better during these conversion steps than a spin drive.

Outside of loading new areas, in what situations do you experience the worst or most uneven framerates (e.g. indoors in taverns, outdoors at night)?

It would also be helpful to attach a zip of your player.log file (it's in the same folder as settings.ini). This might indicate something else is going wrong other than simply performance/tuning problems.

DaggUser wrote: Sun Jan 14, 2024 2:45 am I tried disabling all my mods, but no improvement either. Are any of you guys using linux and having framerate issues ? I am new to linux gaming so maybe I should install drivers, as mangohud indicates OpenGL... Should it be Vulkan ? I'm not sure.
I'll leave this to one of our primary Linux users to answer if possible. Drivers can be a real mixed bag on Linux and I don't feel qualified to answer this.

DaggUser
Posts: 4
Joined: Sun Jan 14, 2024 12:19 am

Re: [Linux] Low framerate and bad frametime

Post by DaggUser »

Thanks for replying !

Well I do have a SSD, nvme pcie 3.0 to be exact, so it is rather fast as far as loading areas are concerned.

My main issue is, as you mentioned, outside of these areas where the frametime is all over the place and the game stutters constantly, mostly cities and palaces, but not inside dungeons or taverns or homes. Small exteriors are smooth too. It's really cities and palaces. Bad frametime and sometimes framedrops (around 50fps).

I understand a Radeon™ Vega Mobile Gfx × 8 is not the best of the best but shouldn't it be able to achieve constant, smooth 60fps at 640x480fps (outside of fast traveling, loadings, etc.) ?

User avatar
Interkarma
Posts: 7247
Joined: Sun Mar 22, 2015 1:51 am

Re: [Linux] Low framerate and bad frametime

Post by Interkarma »

For comparison, my Ubuntu test notebook is an old Toshiba Satellite L850 with an i5-3230M CPU, AMD Radeon HD 7670M GPU, 4GB RAM, 60GB SSD.

I get a fairly consistent 50-60fps everywhere in retro mode 640x400 16:10 and otherwise default settings (no mods). It's perfectly playable, and around what I would consider good minimum spec for DFU.

I think your Vega 8 should be a bit faster than the HD 7670M, and the rest of your specs are definitely better. It's hard to say why you're experiencing choppy and inconsistent framerates.

Drivers are definitely something to look into, they can make all the difference. But I don't know enough to try and steer you properly here with good advice. Hopefully one of our primary Linux people can chime in to help.

DaggUser
Posts: 4
Joined: Sun Jan 14, 2024 12:19 am

Re: [Linux] Low framerate and bad frametime

Post by DaggUser »

OpenMW runs at 1920x1080 and max draw distance with default settings (legacy i.e. no shaders) at a constant and smooth 60fps. I've finished the game and it doesn't stutter at all.

So 50fps for a 1997 game at 640x480 seems weird, is all. :lol:

But yeah it's playable, at least. I was simply wondering if it wasn't some linux-related issue.

User avatar
Interkarma
Posts: 7247
Joined: Sun Mar 22, 2015 1:51 am

Re: [Linux] Low framerate and bad frametime

Post by Interkarma »

Daggerfall Unity is roughly a 2016 game. It's not a source port and has nothing in common with the 1996 DOS executable. Rather, it's a whole new game built from the ground up in a modern engine with contemporary mod support.

To set expectations, there is no legacy or forward-only mode. DFU is always running a deferred rendering pipeline with PBR-capable shaders. This is why it can freely mix modern materials and assets alongside classic assets in any configuration, even retro mode. This flexibility for mods was a higher priority than supporting very old or very low spec PCs.

That said, my Satellite L850 from 2012 runs the game at a solid 50-60fps, which is a decent minimum spec for DFU considering we're now in 2024. Your system is a bit higher spec than my Toshy, so I can't say why you're not experiencing a similar or better outcome. I'm sorry there's nothing else I can suggest to help at this stage.

DaggUser
Posts: 4
Joined: Sun Jan 14, 2024 12:19 am

Re: [Linux] Low framerate and bad frametime

Post by DaggUser »

No worries, DFU is amazing. It must be my computer or my OS. I can deal with it.

Thank you for your answers. :D

Post Reply