Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Erstori/FallrimPriority int…
Browse files Browse the repository at this point in the history
…o main
  • Loading branch information
Nyrest committed Jun 19, 2021
2 parents 75c5814 + 131f09f commit 9cb5bc2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
35 changes: 19 additions & 16 deletions PriorityMod.toml
Original file line number Diff line number Diff line change
@@ -1,38 +1,41 @@
[PriorityMod]
enabled=true
enabled = true

## Priorities
# No Change = -1
# Idle = 0
# Below Normal = 1
# Normal = 2
# Above Normal = 3
# High = 4
# Realtime = 5 (Run as Administrator is required) (Not Recommended)
# No Change = -1
# Idle = 0
# Below Normal = 1
# Normal = 2
# Above Normal = 3
# High = 4
# Realtime = 5 (Run as Administrator is required) (Not Recommended)
# Check Microsoft official document for the details
# https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-setpriorityclass#parameters
priority=4
priority = 4

## Affinity
# Process Affinity (0 = no change)
# Check Microsoft official document for the details
# https://docs.microsoft.com/en-us/windows/win32/procthread/processor-groups
affinity=0

# To set the value. You need CPU Affinity Mask Calculator
# https://bitsum.com/tools/cpu-affinity-calculator/
affinity = 0

## Dynamic Priority
# For people who have bAlwaysActive=true
# Priority and affinity will set to value below when lost focus
# Regain focus or not responding will set back to [PriorityMod] section
[DynamicPriority]
enabled=true
idle_priority=1
idle_affinity=0
enabled = false
idle_priority = 1
idle_affinity = 0

## ENBHost Priority
# Only for 32bit games with ENB.
# Related code won't be included at Compile-Time in Fallrim Priority 64bit
# So you don't need to disable it when you playing 64bit game
[EnbHost]
enabled=true
priority=4
affinity=0
enabled = true
priority = 4
affinity = 0
9 changes: 5 additions & 4 deletions pack.csx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//#r "nuget: System.IO.Compression, 4.3.0"
#r "System.IO.Compression"
using System;
using System.IO;
Expand All @@ -15,11 +14,13 @@ ModReleaseInfo[] outputs = new ModReleaseInfo[]
{
new ("Skyrim Priority LE" ,"SKSE", x86), // The Elder Scroll Skyrim SE/VR
new ("Skyrim Priority SE" ,"SKSE", x86_64), // The Elder Scroll Skyrim LE
new ("Enderal Priority LE" ,"SKSE", x86), // Enderal LE
new ("Enderal Priority SE" ,"SKSE", x86_64), // Enderal SE
new ("Oblivion Priority" ,"OBSE", x86), // The Elder Scroll Oblivion
new ("Fallout Priority" ,"F4SE", x86_64), // Fallout 4/VR
new ("Fallout Priority 3" ,"FOSE", x86), // Fallout 3
new ("New Vegas Priority" ,"NVSE", x86), // Fallout New Vegas
new ("Fallout4 Priority" ,"F4SE", x86_64), // Fallout 4/VR
new ("Fallout3 Priority" ,"FOSE", x86), // Fallout 3
new ("NewVegas Priority" ,"NVSE", x86), // Fallout New Vegas
//new ("Redfall Priority" ,"RESE", x86_64), // The Elder Scroll Redfall
};

byte[] dll32 = File.ReadAllBytes($"{GetCompiledPath(x86)}\\{ModDllName}");
Expand Down

0 comments on commit 9cb5bc2

Please sign in to comment.