- 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.
- The DevOps 2.3 Toolkit
- 算法零基礎一本通(Python版)
- Debian 7:System Administration Best Practices
- Python數據可視化:基于Bokeh的可視化繪圖
- HoloLens Beginner's Guide
- Mastering PHP Design Patterns
- UI智能化與前端智能化:工程技術、實現方法與編程思想
- D3.js 4.x Data Visualization(Third Edition)
- Mastering Unity 2D Game Development(Second Edition)
- Unity 2018 Shaders and Effects Cookbook
- HTML+CSS+JavaScript網頁設計從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)
- Java7程序設計入門經典
- Learning Jakarta Struts 1.2: a concise and practical tutorial
- 多媒體技術及應用
- 高效使用Greenplum:入門、進階與數據中臺