- 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.
- Bootstrap Site Blueprints Volume II
- Git Version Control Cookbook
- 國際大學(xué)生程序設(shè)計競賽中山大學(xué)內(nèi)部選拔真題解(二)
- 解構(gòu)產(chǎn)品經(jīng)理:互聯(lián)網(wǎng)產(chǎn)品策劃入門寶典
- Interactive Data Visualization with Python
- Python網(wǎng)絡(luò)爬蟲從入門到實踐(第2版)
- C語言程序設(shè)計
- 圖數(shù)據(jù)庫實戰(zhàn)
- Java網(wǎng)絡(luò)編程實戰(zhàn)
- SwiftUI極簡開發(fā)
- .NET 4.0面向?qū)ο缶幊搪劊簯?yīng)用篇
- 大學(xué)計算機應(yīng)用基礎(chǔ)(Windows 7+Office 2010)(IC3)
- 虛擬現(xiàn)實建模與編程(SketchUp+OSG開發(fā)技術(shù))
- C語言程序設(shè)計實驗指導(dǎo)
- Python游戲編程項目開發(fā)實戰(zhàn)