Skip to content

Sqooky/Deadlock-Optimization-Resources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 

Repository files navigation

No Generative AI was used in the making of this
To either request support or contribute findings to the project, our discord server can be found here

IF YOU HAVE ANY QUESTIONS OR DESIRE TO MAKE A CONTRIBUTION, MY CONTACTS ARE AS FOLLOWS.

Email: sqookymrsmiku@proton.me
Discord: _bluster_
Steam: https://steamcommunity.com/id/happylilsqooky/

Deadlock-Optimization-Resources

This Repository seeks to act similar to an awesome-list where it is a list of resource and documentation on how to utilize and apply them Please contribute as I am not all knowing

Contents

Ingame-Adjustments

gameinfo.gi Modifications

Haven't tested

My config is very well documented and tries to maintain some degree of visual quality

Launch Options

These are the only launch options I am aware of that actually do anything of substance

  • -threads x How many threads to use, replace x with whatever you want, the Valve Wiki says "your cores +1" It is worth mentioning that this shouldn't be needed for the majority of systems as the engine handles threading itself.
  • -high Pretty sure this tells windows to give it higher priority.

Rendering Backend

  • DirectX11

Launch command is -dx11. As time has passed vulkan seems to run better for myself and others. Only supports fsr2.

  • Vulkan

Launch command is -vulkan. Runs better than DX11 from my testing. Supports fsr3; this will likely be the only renderer in the future.

DXVK seems to increase frame stability for older gpus and with newer AMD GPUs improves framerates. It might require cacheing of shaders again. It is automatically used when running in DX11 through Proton on Linux, but must be installed manually on Windows.

External-Adjustments

Upscaling Tomfoolery

A means of modifying upscaling in deadlock. It allows you to force fsr4 and various other cool tweaks. It potentially allows for frame gen to be forced on nvidia gpus, but under linux it only presents the option when running under vulkan, and the debug menu for fg doesn't work. This leads me to believe that it isn't possible but your mileage may vary

Lossless Scaling is a means of allowing external upscaling and frame generation. There is a linux port of the frame gen avalible here.

Windows Specific

Debloat Windows

You generally should ensure that your windows install is debloated.

  • Winutil
    Well documented debloater tool. Generally the most advised.

Process Lasso

Process Lasso Allows you to increase the priority of Deadlock in regards to windows CPU allocation. It can be downloaded here

Linux Specific

Enviornment Variable Settings

  • ENABLE_LAYER_MESA_ANTI_LAG=1 Experimental Mesa anti-lag layer
  • PROTON_FSR4_UPGRADE=1 Makes older GPUs use fsr4 in place of fsr3 (I think)
  • PROTON_FSR4_RDNA3_UPGRADE=1 Makes newer GPUs use FSR4 in place of FSR3
  • PROTON_ENABLE_WAYLAND=1 Forces proton to run native in wayland. Seemed to make the game run smoother
  • PROTON_NO_WM_DECORATION=1 Disables window decoration, can help with window snapping on select compositors, but usually won't be needed.
  • MANGOHUD=1 Needs Mangohud, you already know what it is. Useful for checking performance stats.

So for example using all of these would look something like ENABLE_LAYER_MESA_ANTI_LAG=1 PROTON_FSR4_RDNA3_UPGRADE=1 PROTON_ENABLE_WAYLAND=1 MANGOHUD=1 gamemoderun %command% -vulkan

Cpu

You should utilize a tool such as cpupower or gamemoderun to ensure your cpu is set to performance mode.

Gpu

AMD GPUs

Make sure your MESA drivers are up to date. You can use software such as LACT or CoreCTRL to make sure your GPU's performance governor is set properly

Nvidia GPUs

  • Make sure you're using an x11 based window manager/desktop enviornment. As far as I'm aware nvidia gpus still perform marginally worse under wayland

OS

Desktop Enviornment

Some desktop enviornments are more performance heavy than others. You can consider using a standalone wm if you're desperate for performance. The ones I would recommend from personal experience are as follows:

  • MangoWC Runs under wayland, pretty versatile and well optimized
  • i3 It's like driving a brick at two hundred miles an hour.

Kernel

Ntsync Performance Module

You can enable the Ntsync performance module which should help with frametimes by running

sudo mkdir -p /etc/modules.load.d/
echo '"ntsync"' | sudo tee /etc/modules.load.d/ntsync.conf
Performance Kernels

There are various performance oriented kernels

Most notably using the BORE CPU scheduler with various other patches targeting performance.

I don't have much experience with Liquorix so I can't offer much insight but it seems to be actively developed

The isolated kernel from Intel's ClearLinux, it should provide a performance boost on Intel machines but I don't have the means to test it on an AMD CPU. Also obligatory Death Grips reference.

Seems to be a bit slow on development but was more popular in the past.

Seems to be pretty cool but I haven't monkeyed with it. Has very active development as well as customization options.

Proton

Various versions of proton could yield a marginal performance boost.

Event Tracing

Event tracing is a powerful way of profiling everything going on in your device. While this is a minor security risk, tracking down the cause of performance issues like stutters is trivial when tracing. Useful for finding what your pc's weakpoint is.

Windows Specific

Valve recommends the player trace with Event Tracing for Windows (ETW). ETW-related apps suited for Deadlock are:

Linux Specific

Valve doesn't explictly recommend any tools for linux, although my personal recommendation is perf.

Todo

  • Verify that optiscaler can consistently force frame generation and destribute a config for optiscaler that does so
  • Establish a standardized benchmark and test the configs

About

This Repository seeks to act similar to an awesome-list where it is a list of resource and documentation on how to utilize and apply them. Additionally it being a github repository allows for easier seo and contribution from other members of the community.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors