Jun 02, 2021 Article blog
Quake-III Arena is one of the classic games of the '90s. T he series of games not only has good graphics and content, but also runs extremely smoothly even when the computer configuration is low. T hat's thanks to John Carmack, the developer of its 3D engine. I n fact, back in the DOS era of the early 1990s, when it was amazing to be able to do a little animation on a PC, John Carmack launched the stone-breaking Wolf Castle Castle, and then the re-inspiration, doom, doomII, Quake... P ush 3-D technology to the extreme every time. H is 3D engine code is extremely efficient, pressing almost every instruction on the PC. At the beginning, MS Direct3D had to listen to him and modify a lot of APIs.
RECENTLY, QUAKE DEVELOPER ID SOFTWARE COMPLIED WITH THE GPL PROTOCOL AND RELEASED THE ORIGINAL CODE FOR QUADE-III, GIVING THE WORLD THE PRIVILEGE OF WITNESSING THE ORIGINAL CODE OF CARMACK'S LEGENDARY 3D ENGINE. This is the download address of the original QUKE-III code:
http://www.fileshack.com/file.x?fid=7547
(Below is the official download URL, search "quake3-1.32b-source.zip" to find a whole bunch of Chinese pages.) ftp://ftp.idsoftware.com/idstuff/source/quake3-1.32b-source.zip)
We know that the lower the function, the more frequently it is called. T he 3D engine is, in the final analysis, mathematical. T hen finding the lowest mathematical function (in game/code/q_math.c) must be well-written. T here are a lot of interesting functions, many of which are amazing, and we can't learn them for years. S uch a piece of code was found in the game/code/q_math.c. Its purpose is to square and take down a number, and the code has been tested to be four times faster than (float) (1.0/sqrt(x)::
w3cschool Official Public Number: w3c Technical Tutorial, sharing a variety of technical dry goods and interesting tech news every day.