The Maze Escapist Version 3
In the third and final version, I fixed the major issue of screen lag and made the final version very smooth. These intelligent techniques were taught to me in my class.
Page flipping, a type of double buffering technique used in computer graphics to remove flickering or tear, made sure that this issue was removed. I had two video buffers where the data for the screen is written. While one video buffer was being displayed, the other video buffer was being written on. Both of these buffers alternate between being displayed and being written on.
Even though the number of colors reduced significantly, there was not much difference in the graphics and the speed increased significantly. These two major fixes in this code made sure that the game was displayed properly without any tear or flickering, providing a smooth user experience.