Games on Linux lags. Windows smooth.

Anything related to gaming on Linux Mint including game discussion or questions concerning Steam or Wine.
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
AjaySarwan

Games on Linux lags. Windows smooth.

Post by AjaySarwan »

I have dual boot of Mint 20 with cinnamon and Windows 10
Games that run smoothly on windows lags when on mint.

I mostly play KSP. I have got it on both windows and linux through stream.
Game runs better on windows than linux.
I tried disabling desktop composition and installing Mate DE.

Video playing is no issue on linux. Even 4k is good. It lags only when gaming.

Can anybody guess a fix for this?
I have i5-4670, integrated graphics only and 8 gb ram.

Thanks
//I posted this on a similar threadviewtopic.php?p=1851193#p1851193, but was asked to create a new topic//
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
cretsiah
Level 5
Level 5
Posts: 503
Joined: Wed Jul 22, 2020 5:44 am

Re: Games on Linux lags. Windows smooth.

Post by cretsiah »

If I were you I would try XFCE given the low ram.

with intergrated graphics ram under 16gig is pushing the extreme.

when looking at games I always go by this maths formula:
- 4-8gig ram OS (doesnt matter windows or linux)
- 2-4gig ram video card (bearest minimum dedicated, 2gig if intergrated)
- 4-8gig ram game requirement

total ram = 16-24gig

hope this helps
mr_raider
Level 7
Level 7
Posts: 1897
Joined: Sun Jun 20, 2010 9:50 am
Location: Montreal, QC

Re: Games on Linux lags. Windows smooth.

Post by mr_raider »

KSP is kerbal space program?

Dont they recommend a 1gb VRAM card?

Try downgrading the texture and graphic settings and turn off anti-aliasing.

Also, I think KSPs Linux version may be an ugly implementation. You can actually force steam to play the windows version with proton compatibility layer.

FWIW it runs fine on my desktop (ryzen 2700, AMD rx 5700), and my laptop (AMD a12-8800 integrated graphics) at lower settings.
Image
AjaySarwan

Re: Games on Linux lags. Windows smooth.

Post by AjaySarwan »

All the graphics are kept at lowest settings. Resolution changed to 1366*786. Anti-aliasing is off. Games looks like the it is skipping frames.
But in windows, resolution is 1920*1080 with anti aliasing turned on with slight improved graphics settings. Kerbal Space Program runs very smooth in it.

I will try the XFCE and proton option.

Thanks.
1000
Level 6
Level 6
Posts: 1039
Joined: Wed Jul 29, 2020 2:14 am

Re: Games on Linux lags. Windows smooth.

Post by 1000 »

-> Sorry but I don't think integrated graphics card is good for games.
1. Because I don't seen yet good integrated graphics card for games.
2. One of the main reasons is that you share resources (CPU) and have less for games.
3. Integrated card also consumes RAM.
4. If you don't have enough RAM then the computer can use SWAP (hard drive) which is theoretically slower than RAM.
Out of memory can even freeze your computer's performance.

-> If you play games that weren't written from scratch for Linux then I doubt their full performance on Linux.
For example: for Warframe I need run
* Steam and Steam uses 32 bit and 64 bit libs on 64 bit system ( for example for games 32bit )
* xboxdrv to avoid breaking the game, because game want find additional hardware
* Steam also use Proton to run this game on Linux.

-> 64 bit & 32 bit -> 64 bit applications use more RAM because the memory address is longer.

-> Hardware compatibility and driver can be varied.
I no longer write about the system itself and what you have in it.
For example when:
* someone can using a heavy desktop environment with a stack of processes running in the background
* someone use graphic card AMD without Vulcan tools installed which improve performance when the game uses them
* The game Witcher 2 proved that sometimes there can be errors and deficiencies in the drivers.
* Open drivers can increase performance when optimizations are added, but also lose when new or old technologies / patents cannot be added

-> Also SSD hard drive can be slower when is full.

Something else.
4K picture can be optimized by better codecs.
But performance may also vary depending on the hardware or program.
For example Firefox can support newer hardware better than older hardware.
So it can be difficult to compare this to the games.
1000
Level 6
Level 6
Posts: 1039
Joined: Wed Jul 29, 2020 2:14 am

Re: Games on Linux lags. Windows smooth.

Post by 1000 »

Maybe you will know how to run and check Vulkan. https://wiki.archlinux.org/index.php/Vulkan
If will working, you can check how working "Dota 2" and other games with Vulkan https://en.wikipedia.org/wiki/Vulkan_(API)#Games
Wine probably doesn't have the original Direct3D driver, so performance may be lower.
Proton incorporates several libraries that improve 3D performance. These include Direct3D-to-Vulkan translation layers.
So theoretically it has a better performance.
Edited: When you will Vulkan active, games which support Vulkan maybe will slightly greater efficiency.
1000
Level 6
Level 6
Posts: 1039
Joined: Wed Jul 29, 2020 2:14 am

Re: Games on Linux lags. Windows smooth.

Post by 1000 »

About "Kerbal Space Program".

You didn't write how you run the game.
I see that Steam supports this game for Linux.
-> You can always debug the game and report any bugs to the right place, if are.
-> I have also seen tutorials on youtube how add some options when game running via Steam with "Proton".
One of these options maybe improve performance.
But this option comes from the Proton tutorial and not all games may work properly with this option.
veerverma
Level 1
Level 1
Posts: 11
Joined: Tue Jan 26, 2021 5:08 am

Re: Games on Linux lags. Windows smooth.

Post by veerverma »

I have same problem and i want to explain this to my others friends who can fix there problem too
so the thing is i used befor kubuntu and play games on there iit run very great
but then i transfer to linux mint xfce its more faster but the games are slow and the screen tearing while scrolling through web page
so i though to go to ubuntu again but the linux mint is very good that i not want to go and try to just fix the problem i search everywhere but i get nothing but
Then i just disable linux mint composition and then the game run faster then ever :D,hope this helps you too.
1000
Level 6
Level 6
Posts: 1039
Joined: Wed Jul 29, 2020 2:14 am

Re: Games on Linux lags. Windows smooth.

Post by 1000 »

Only curio.

About CPU options --> like in BIOS
http://dcjtech.info/topic/cpu-frequency ... governors/
1000
Level 6
Level 6
Posts: 1039
Joined: Wed Jul 29, 2020 2:14 am

Re: Games on Linux lags. Windows smooth.

Post by 1000 »

I'll write something else.
Maybe it is not directly related to the topic.
Because the system optimization at the developer level looks a bit different.
For example,
- Developer can sometimes simplify the code which will faster
- Developer can sometimes use faster language
- Packager may compile the program with different options or not compile a few plug-ins.

The optimization of the system from the user level looks a bit different.
- He can remove unnecessary programs
- He can disable unnecessary services at computer startup
( systemd unit , systemd timer , cron , $HOME/.config/autostart , $HOME/bashrc )
- He can change the desktop environment and other programs to lighter replacements
- He can change the graphics card and processor settings.

I know from experience that you will not find so much governors of CPU in the system like above.
Usually only performance and powersave.

Instead of using a long command to change CPU settings in a terminal you can try.

1. Plug-in " monitor CPU frequency " in side Mate desktop.

Click on the right mouse button on panel to add plugin ( then Add to Panel )
Image

Then just left-click on the icon ( monitor CPU frequency ) to change governor.

It is possible that in your graphic environment there is also something similar.

2. " cpupower-gui " app in side Synaptic package manager

Image

3. You can build own script for desktop.
Example: viewtopic.php?f=213&t=355047

4. You can build alias ( own local shorter command )
Example: https://www.cyberciti.biz/tips/bash-ali ... -unix.html

For example you can add to bashrc file:
( it should be at the end of the file )

Code: Select all

###########################{
CPU_WAKE_UP(){
echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
}

CPU_SLEEP() {
echo powersave | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
}

alias cpu.up='CPU_WAKE_UP'
alias cpu.down='CPU_SLEEP'
alias cpu.status='cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor'
###########################}
To refresh bash

Code: Select all

source ~/.bashrc
And it's ready :D
You can test new commands: cpu.up , cpu.down , cpu.status
cpu.status - It will display as many lines as you have cores or as many threads in your CPU.


Careful people also use commands from root
to unlock bashrc file for editing

Code: Select all

chattr -i .bashrc
and to lock bashrc

Code: Select all

chattr +i .bashrc
But I don't think many people do that.
1000
Level 6
Level 6
Posts: 1039
Joined: Wed Jul 29, 2020 2:14 am

Re: Games on Linux lags. Windows smooth.

Post by 1000 »

Something similar to CPU frequency,
this is about gamemode app for any game.
https://www.youtube.com/watch?v=sZb1v4EM-2U
Locked

Return to “Gaming”