After reading section 1.3 of 3D game programming Masters, I feel that many of the knowledge of this science has suddenly found value. For example, assembly and addressing.
These things can also be used in game programming ~ The key points of the excerpt are as follows:
Video games are super-high-performance computer programs. This means that you will not be able to use advanced APIs in time-critical code and memory-critical code.
The following are some tips to remember when programming games:
1. Back up your work
2. Good organization is required when you start a game project
3. Use embedded Functions
4. Try to use 32-bit variables instead of 8-bit or 16-bit variables.
5. Do not be afraid to use global variables
6. Programming in the form of RISC
7. For a simple operation of multiplying an integer by the power of 2, binary shift should be used.
8. Compile Efficient Algorithms
9. Do not optimize the code During code writing.
10. Use C ++ with caution (this indicates I don't know, because I have always used C ++. To be determined, this book is old after all)
11. If you find that the route is difficult, stop it immediately, back up it, and try to bypass it.
12. Do not write complex data structures for simple objects.
Game programming skills