Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why doesn't the section on double buffering mention triple buffering? Double buffering is useful but it has a very important limitation: if the consumer is slower than the producer then the producer can stall while the consumer is still working, and then the consumer gets stale data for its next iteration. The extra memory cost of triple buffering is always worth it for gaming, because none of the ephemeral state data is all that large, and latency matters.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: