- 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.
- Redis入門指南(第3版)
- Python自動化運維快速入門
- Java加密與解密的藝術(第2版)
- Web全棧工程師的自我修養
- SQL Server 2016數據庫應用與開發習題解答與上機指導
- 低代碼平臺開發實踐:基于React
- Express Web Application Development
- PHP+Ajax+jQuery網站開發項目式教程
- 智能手機APP UI設計與應用任務教程
- Getting Started with Nano Server
- 軟件體系結構
- Android編程權威指南(第4版)
- Responsive Web Design with jQuery
- Learning WordPress REST API
- Spring Boot 3:入門與應用實戰