Improves the performance of Call of Duty Mobile, Genshin Impact and other Unity engine games (You can add the library for a game or app via the web UI.)
https://t.me/modulostk β// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
// how to help
// readme
UnityFix
English | EspaΓ±ol
Description
Applications that use the Unity engine incorrectly set the CPU affinity to maximum capacity cores, this module configures the library name and mask to always report the same maximum which helps improve performance in games such as:
-
Call of Duty Mobile
-
Genshin Impact
-
League of Legends: Wild Rift
-
Mobile Legends
-
CarX Street
-
Free Fire
-
and othersβ¦
-
You can add the library for a game or app via the web UI.
How it works
UnityFix sets two kernel parameters (in /proc/sys/kernel/ or /proc/sys/walt/, depending on the kernel):
sched_lib_name: Comma-separated list of library names (.so), for examplelibunity.so, libfb.so. The kernel checks the libraries each app has loaded, and if one of them matches a name in the list, the app is treated as a βlibrary based appβ. Unity games loadlibunity.so.sched_lib_mask_force: CPU bitmask (bit N = CPU N, an integer between 0 and 255). When one of the apps detected throughsched_lib_nameasks the kernel to pin its threads to some cores, the kernel replaces the cores it asked for with this mask.
Mask values (8 cores):