Support us on Patreon to keep GamingOnLinux alive. This ensures all of our main content remains free for everyone. Just good, fresh content! Alternatively, you can donate through PayPal. You can also buy games using our partner links for GOG and Humble Store.
How to fix stuttering on UE3 Games [like spec ops the line]
[email protected] Dec 28, 2015
Spec Ops: The Line and many other Unreal Engine 3 games (like Borderlands 2 and Pre-Sequel) have an annoying stuttering issue, because PoolSize and MemoryMargin are not set correctly.
I wrote a script that changes PoolSize and MemoryMargin based on your video memory, for all games, automatically.
This is the link: https://github.com/Kryuko/ue3_linux_opti
It's open source and GPLv3 licensed.
Please test it, especially on Spec Ops: The Line, which has a lot of stuttering that makes it unplayable (this script fixes that for me)

cd /tmp

git clone https://github.com/Kryuko/ue3_linux_opti

cd ue3_linux_opti/

chmod 777 UE3_Linux_Opti.sh

./UE3_Linux_Opti.sh


Enjoy!
StianTheDark Dec 29, 2015
GPL for a shell script?
[email protected] Dec 29, 2015
Quoting: StianTheDarkGPL for a shell script?

Yup
StianTheDark Dec 29, 2015
I wont use a shell script which is licensed under GPL, as I could be sued for sharing a modified script with my friends without mentioning where I got it from.
Liam Dawe Dec 29, 2015
Something like this could be much better under an MIT license, then it doesn't matter.
Julius Jan 11, 2016
Sounds very cool. So I just start the script, let it run in the background and then start the game through steam?

What happens when I quit the game and close the script? Do I need to reboot to get back to default behavior?

Did you try it with Nvidia Prime (=optimus laptop)?
Skully Jan 11, 2016
Quoting: Guestfind ~/.local/share/ -type f -iname *.ini -exec sed -inr "s/^PoolSize=.*/PoolSize=$MEMORY/g" {} \;
seems a bit risky to do. There could be other ".ini" files with PoolSize variables that have nothing to do with UE3.

I agree, the filename needs to be alot more specific than *.ini. But at least you can change that yourself.
HadBabits Jan 11, 2016
Quoting: JuliusSounds very cool. So I just start the script, let it run in the background and then start the game through steam?

What happens when I quit the game and close the script? Do I need to reboot to get back to default behavior?

Did you try it with Nvidia Prime (=optimus laptop)?

I'm no expert programmer, but it looks like it just searches your files for ini then changes some variables. So, you run this once and it will modify all ini files and done; in fact, if you noticed, the instructions tell you download and run the script from your /tmp directory, i.e. it'll be gone once you log out ;)
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register


Or login with...
Sign in with Steam Sign in with Google
Social logins require cookies to stay logged in.

Buy Games
Buy games with our affiliate / partner links: