~/talk

Performance: Do Graphics the Right Way

Talkat Qt Developer Days 2010 (Munich) · 2010-10-11..10-13· [web-performance]
links:none on file
slides:none on file

Practical recipe for fast Qt graphics: prefer opengl for main view and raster for UI — raster makes state changes and small draws cheap while OpenGL handles huge pixel throughput but has a 120 μs setup cost per glDrawArrays call. Two rules: minimize state/clip changes and combine many primitives into one call (drawPixmapFragments hits this). Static text (QStaticText) cuts layout cost — demo goes from ~80 ms per frame (widget per-button) to ~16 ms (cached pixmaps, 60 fps). Offload image decode/compose to a worker thread to keep UI at ~58–59 fps.

AI-written summary · about

  1. 0:00Introduction and background
  2. 4:17Graphics systems concept
  3. 19:53Painting rules and optimizations
  4. 33:50Text rendering challenges
  5. 46:51Threading for responsive UI
  6. 57:20Demo and summary
~/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.