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
314
66
4 months ago 00:04:33 1
Graph reduction
4 months ago 00:16:43 1
Cocos2d-x , , 3.x Windows and Visual Studio Setup
4 months ago 05:27:56 1
OpenGL c++ first person shooter engine game dev: Collision and Splitscreen
5 months ago 04:10:31 1
OpenGL/Vulkan c++ game engine dev: 4 player splitscreen
5 months ago 00:00:24 1
OpenGL c++ game engine dev: Ragdolls, blood, and weapon drop
5 months ago 00:20:18 1
OpenGL Tutorial - 1 | Getting Started | OpenGL in C++ with the GLUT library
5 months ago 00:03:49 1
C++ OpenGL Lesson 1: A Simple OpenGL Project
5 months ago 00:20:03 1
Crypto scam on the Snap store, Warp on Linux, an API for RGB: Linux & Open Source news
5 months ago 00:17:47 1
Mozilla layoffs, Cosmic DE alpha, India bans Proton Mail: Linux & Open Source News