~/talk

Harvest the power of the GPU for awesome special effects

Talkat PyCon US 2022 · 2022-04-27..05-03· [creative-coding, python]
links:none on file
slides:none on file

Shows how to offload rendering and computation to the GPU using Arcade library and shadertoy.com style GLSL shaders, with concrete numbers: >40,000 bodies in an N‑body demo (~1.6 billion pairwise calcs per frame, ~100 billion/sec) and sprite counts jumping from ~2,000 (CPU/Pygame) to tens of thousands or even millions on GPU. Builds a glowy movable ball and a starfield; shader+Python is under ~50 lines; the N‑body demo runs ~30 fps on a 7‑year‑old GPU.

AI-written summary · about

  1. 0:00Intro
  2. 1:20Outline
  3. 3:24The oldschool way
  4. 5:48End body simulation
  5. 6:16Gravity calculations
  6. 6:58Shaders
  7. 7:59Shadertoy
  8. 8:56Getting a window
  9. 10:51Adding a shader
  10. 11:57Writing the shader
  11. 12:30Normalizing the coordinates
  12. 13:19Shader
  13. 16:30Shift
  14. 16:52Aspect Ratio
  15. 17:44Circles
  16. 19:28Python
  17. 19:49Glory Ball
  18. 20:07Position and Color
  19. 21:03Color
  20. 21:13Uniform
  21. 22:28Subtraction
  22. 22:59Python code
  23. 23:34Shader tutorials
~/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.