Skip to content

[codex] Add CPU topology spoofing - #363

Draft
Chel-Tbl wants to merge 1 commit into
SpecialKO:mainfrom
Chel-Tbl:codex/cpu-topology-spoof
Draft

[codex] Add CPU topology spoofing#363
Chel-Tbl wants to merge 1 commit into
SpecialKO:mainfrom
Chel-Tbl:codex/cpu-topology-spoof

Conversation

@Chel-Tbl

Copy link
Copy Markdown

Summary

  • Add per-profile [Scheduler.CPUSpoof] settings for enabled state, logical processors, and physical cores.
  • Spoof common CPU topology entry points including GetLogicalProcessorInformation(Ex), GetSystemInfo, active/max processor counts, process affinity, threadpool limits, and MSVCP hardware concurrency.
  • Install the topology spoof path early and patch loaded-module imports / GetProcAddress / LoadLibrary* so games that query CPU topology during startup can see the configured topology.
  • Add control-panel UI for Spoof CPU Topology plus optional Windows AppCompat ProcessorCountLie SDB install/uninstall helpers.
  • Add worker-thread diagnostics and CPU monitor/widget bounds checks for spoofed topology scenarios.

Paired SKIF PR

Launcher support is in SpecialKO/SKIF#56. That paired change forwards CPU-topology-enabled launches through SKIF's suspended early-injection path and makes config reset remove generated CPU topology SDB artifacts.

Validation

  • $env:CL='/wd4828'; msbuild SpecialK.sln /m /p:Configuration=Release /p:Platform=x64 /p:VCToolsVersion=14.44.35207 /v:minimal
  • git diff --cached --check

/wd4828 was needed only to get past an existing NVAPI header codepage warning that VS18 otherwise treats as fatal before compiling the changed files.

@Chel-Tbl
Chel-Tbl force-pushed the codex/cpu-topology-spoof branch from 0636f3a to f91e3c3 Compare May 24, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants