gl-branch

Jump to: navigation, search

gl-branch is a branch in the Chocolate Doom Git repository that was created to add OpenGL scaling.

Chocolate Doom includes code that scales the original 320x200 VGA display to larger screen resolutions, and also provides aspect ratio correction (see Screen resolution). However, the original scaling code was software-based, using hand-written loops to perform the scaling. This became increasingly inefficient and untenable as modern computers gained increasingly high resolution displays. The software approach also meant that only certain screen resolutions and window sizes were supported.

gl-branch used OpenGL to accomplish the same goal in hardware. This allowed scaling to arbitrarily high resolutions while using almost no CPU.

After its initial development, it was discovered that the same result could be attained using SDL's built-in API functions. Similar hardware scaling was therefore implemented as part of sdl2-branch and gl-branch was abandoned.