~/talk

Combining Co-Routines and Functions into a Job System

Talkat CppCon 2021 · on Friday, 2021-10-29· at 13:30· online· [rust]
slides:none on file

Claims a working C++20 job system called Vienna Game Job System (VGJS) that schedules both co-routines and plain functions, supports tagged phase scheduling, memory_resource allocation, and Chrome trace output. Built as a thread‑pool only system with work stealing and per‑thread local queues. Measured minimum useful job sizes around 4–8 microseconds for 85–95% efficiency on 12/24 threads. Co‑routines run faster when their frames are preallocated but incur significant overhead when frequently allocated and destroyed.

AI-written summary · about

  1. 0:00Introduction
  2. 0:33About me
  3. 1:37Game Engine
  4. 2:16Game Loop
  5. 2:47Game State
  6. 3:34Multicores
  7. 5:20One Thread
  8. 6:13Parallelization
  9. 7:25Thread Pool
  10. 9:25Dependencies
  11. 12:16Thread Pull
  12. 13:29Local Cues
  13. 14:21Phases
  14. 15:42Vienna Game Job System
  15. 18:46Scheduling
  16. 22:08Scheduling jobs
  17. 23:32Coroutines
  18. 28:11Example
  19. 30:35Behind the Scenes
  20. 33:57The Triangle of Classes
  21. 36:25Promise API
  22. 39:35Waiters
  23. 42:52Waiters for Functions
  24. 47:00CoAwaiting
  25. 50:46Performance Considerations
  26. 53:11Experiments
  27. 56:15Conclusions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.