com_affinity

OpenJK

Needs review. The inventory/provenance evidence is recorded, but some behavior, options, or attribution still lacks a direct user-facing source.

Controls com_affinity in the engine-shared module. Consult the cited behavior reads before relying on values not listed here.

At a glance

Field Value
Category Engine & diagnostics
Module engine-shared
Also registered in engine-shared
Renderer All / not renderer-specific
Network scope client-only — Local to the client/UI/renderer.
Derivation code-trace
Confidence medium
In-game xdocs No
In-game menu No
Default 0
Value type string
Restart No latch flag is registered.
Cheat protected No

Values

No discrete value list is enforced or documented in the inspected source.

Flags

Provenance

Origin: OpenJK

Dated project introductions

Authored dates come from the exact registration’s first content commit, PR dates identify when work was proposed to each project, and integration dates come from each first-parent mainline. A project merging first does not override earlier upstream authorship or submission.

Project Authored PR opened Integrated Commit Relationship
OpenJK 2014-04-04 2014-04-04 d3ecd6191c5b Ultimate origin
EternalJK 2014-04-04 2014-04-04 d3ecd6191c5b Shared integration commit
rend2 2014-04-04 2014-04-04 d3ecd6191c5b Shared integration commit
TaystJK 2014-04-04 2014-04-04 d3ecd6191c5b Shared integration commit
jaPRO 2014-04-04 2014-04-04 d3ecd6191c5b Shared integration commit
NewJK / NewMod 2014-04-04 2014-04-04 d3ecd6191c5b Shared integration commit
Vulkan 2014-04-04 2014-04-04 d3ecd6191c5b Shared integration commit

Later changes

These commits occur after the ultimate-origin introduction on TaystJK’s inherited first-parent lineage. Registration evidence is exact; behavior evidence requires a changed bound cvar reference or a changed registered command-handler hunk.

Date Change source Commit / subject Evidence Confidence
2014-04-04 OpenJK 4210551db101
[SP] Added com_affinity bit-flag to force which cores can be used
Changed registration, default, flags, module, renderer scope, handler, or gating. code/qcommon/common.cpp medium
2014-04-22 OpenJK 7ba1d94fc7e6
[MP] Move processor affinity code to platform-specific files. Check return value of getcwd on Unix systems
Changed an exact bound cvar-variable reference. codemp/qcommon/common.cpp, codemp/qcommon/qcommon.h medium
2014-04-22 OpenJK d13b8a96094a
[MP] Fix bad merge for processor affinity code on Windows
Changed an exact bound cvar-variable reference. codemp/qcommon/common.cpp medium
2015-02-07 OpenJK a7c43677a2bb
Merge pull request #613 from JACoders/sdl2-windows-port
Changed an exact bound cvar-variable reference. shared/sys/sys_unix.cpp, shared/sys/sys_win32.cpp medium
2015-03-08 OpenJK 73d5136d1b49
[Shared] Set CPU affinity on com_affinity modify
Changed an exact bound cvar-variable reference. codemp/qcommon/common.cpp medium
2015-11-13 OpenJK 5ef5d7214371
Merge branch ‘master’ of https://github.com/JACoders/OpenJK
Changed registration, default, flags, module, renderer scope, handler, or gating. code/qcommon/common.cpp, codemp/qcommon/common.cpp medium
2015-11-24 EternalJK c8f6ea17a324
Remove SP code
Changed registration, default, flags, module, renderer scope, handler, or gating. code/qcommon/common.cpp medium
2017-08-31 OpenJK 913e3cc57ec7
Merge branch ‘master’ of https://github.com/JACoders/OpenJK.git
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/qcommon/common.cpp medium
2024-01-14 TaystJK ae65327ce26e · PR #90
Merge pull request #90 from taysta/fix-win64-warnings
Changed an exact bound cvar-variable reference. shared/sys/sys_win32.cpp medium

Evidence