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 ().
53 views
374
83
4 weeks ago 05:27:56 1
OpenGL c++ first person shooter engine game dev: Collision and Splitscreen