- Game Development Patterns and Best Practices
- John P. Doran Matt Casanova
- 185字
- 2021-07-02 23:43:44
The problems with using design patterns in games
Unfortunately, there are also some issues that may come into play from using design patterns exactly as described. It's often said that the fastest executing code is the code that is never called, and using design patterns will typically require you to add more code to your project than what you would have done otherwise. This will have a performance cost as well, as there will likely need to be more calculations done whenever you're using a part of your engine.
For instance, using some principles will cause some classes that you write to become extremely bloated with extra code. Design patterns are another form of complexity to add to your project. If the problem itself is simple, it can be a much better idea to focus on the simpler solutions before going straight into implementing a design pattern just because you have heard of it.
Sometimes it's better to follow the simple rule of K.I.S.S. and remember that it is the knowledge of the pattern that holds the most important value, not using the pattern itself.
- 新編Visual Basic程序設(shè)計上機實驗教程
- Bootstrap Site Blueprints Volume II
- MySQL數(shù)據(jù)庫應(yīng)用與管理 第2版
- EPLAN實戰(zhàn)設(shè)計
- Android 應(yīng)用案例開發(fā)大全(第3版)
- Android開發(fā)案例教程與項目實戰(zhàn)(在線實驗+在線自測)
- Instant Ext.NET Application Development
- C語言程序設(shè)計上機指導(dǎo)與習(xí)題解答(第2版)
- 深度學(xué)習(xí):Java語言實現(xiàn)
- Learning Concurrency in Python
- SQL Server 2012 數(shù)據(jù)庫應(yīng)用教程(第3版)
- Android開發(fā)進(jìn)階實戰(zhàn):拓展與提升
- Mastering PostgreSQL 11(Second Edition)
- Instant AppFog
- 前端程序員面試筆試真題與解析