Job system: spin before sleeping (measured) #18
No assignees
Labels
No labels
area/build
area/content
area/editor
area/engine
area/graphics
area/platform
area/repo-wide
area/tests
area/tools
bug
optional
roadmap
size/L
size/M
size/S
No project
No milestone
Depends on
#16 Job system module primal.jobs
UnflavoredMeson/Primal_Plus_Plus
#35 Parallel preparation and command recording
UnflavoredMeson/Primal_Plus_Plus
Reference
No Branch/Tag specified
Notifications
1 participant
Due date
No due date set.
Reference
UnflavoredMeson/Primal_Plus_Plus#18
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Waking a sleeping worker costs about 37-48 µs, which is why small batches run on the calling thread. A short bounded spin may make small renderer jobs worth splitting. Do this once S6 gives you a renderer to measure.
Decided
PRIMAL_JOBSvaried, plus the power cost (an idle frame mustn't keep cores busy).Read first
UnflavoredMeson/Primal#73, Multithreading section 9 step 5.Steps
Done when
Claude can help with
Learn
_mm_pausedoes for a spinning core and its sibling hyperthread.