3 ms·
Good article. I’d like to add that similar queues are widely used in all multimedia, not just games. This library https://github.com/Const-me/Vrmac/tree/maste
by Const-me 6y ago
Good article.
I’d like to add that similar queues are widely used in all multimedia, not just games.
This library https://github.com/Const-me/Vrmac/tree/master/VrmacVideo https://github.com/Const-me/Vrmac/tree/master/VrmacVideo uses queues to coordinate 3 threads, one decoding video by pumping V4L2 kernel queues, another one decoding audio and playing it with ALSA, and the main thread rendering frames with GLES. Two of my queues are thin wrappers around mq_send / mq_receive Linux APIs.
- phreack 6y agoThis is why I love game programming. You think that's what you're learning and then find out the same techniques are useful all over.