Game programming skills

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.