C++ OpenGL Tutorial - I/O Polling vs Interrupts

In this video, we discuss different forms of processing input from the user during applications. We examine the current method of processing input through polling and its drawbacks. Then, we talk about interrupts and extend the current callback system to process most input using interrupts, optimizing the performance of our program. The second GitHub commit link has all changes for the scene class so that it can use interrupts for the camera. However, the processInput function still polls the keys used to move the camera. This is because when holding down a key, the user expects to move the camera continuously. However, since the interrupt callback is only called when there is a new action (i.e., when the key is first pressed), the camera will only move once until the GLFW_REPEAT action is triggered. • This GitHub commit: • GitHub commit with interrupts worked into scene class: • Previous IO Video: • Website: • Twitter: • Discord: • This Github Repo: • This Playlist: Listened to the album, One, by C418 ().
Back to Top