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 |
|---|---|
| Default | 0 |
| Value type | string |
| Restart | No latch flag is registered. |
| Manually settable | Yes |
| Cheat protected | No |
| Network scope | client-or-server: Engine code in both the client and the dedicated server; each uses its own value. |
| Category | Engine & diagnostics |
| Module | engine-shared |
| Renderer | All / not renderer-specific |
| Derivation | code-trace |
| Confidence | medium |
| Added | 2014-04-04 in d3ecd6191 needs review (how to compare this against your build) |
| In-game xdocs | No |
| In-game menu | No |
Values
No discrete value list is enforced or documented in the inspected source.
Flags
CVAR_ARCHIVE_ND: saved to configuration without marking the cvar as user-created
Provenance
Origin: OpenJK
- Ultimate-origin introduction:
d3ecd6191c5bin OpenJK (content authored2014-04-04, integrated2014-04-04) - Upstream registration evidence: code/qcommon/common.cpp:1151
- Attribution method:
shared-earliest-commit-lineage-order - Attribution confidence:
medium - Notes: The earliest authored/submitted introduction is shared by openjk, eternaljk, rend2, taystjk, japro, newjk, vulkan; fork-lineage order selects 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 | a7c43677a2bbMerge 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 | 5ef5d7214371Merge 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 | c8f6ea17a324Remove SP code |
Changed registration, default, flags, module, renderer scope, handler, or gating. code/qcommon/common.cpp |
medium |
2017-08-31 |
OpenJK | 913e3cc57ec7Merge 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 #90Merge pull request #90 from taysta/fix-win64-warnings |
Changed an exact bound cvar-variable reference. shared/sys/sys_win32.cpp |
medium |
Evidence
- registration: codemp/qcommon/common.cpp:1494 (Cvar_Get)
- behavior: shared/sys/sys_unix.cpp:545
- behavior: shared/sys/sys_win32.cpp:235
- behavior: codemp/qcommon/common.cpp:1895
- behavior: codemp/qcommon/common.cpp:1897
Generated from source commit c722804317d7 on 2026-09-28. Anything merged after that is not reflected here.