Game Engine Architecture, Second Edition
最新书摘:
-
hippo_san2024-05-06We should stress here that threads are the fundamental unit of program execution within an operating system, not processes. A process merely provides an environment within which its thread(s) can run, including a virtual mem- ory map and a set of resources that are used by and shared between all threads within that process. Whenever a thread is scheduled to run on a core, its pro- cess becomes active, and that process’s resources and environment become available for use by the thread while it runs. So when we say that a thread is running on a core, remember that it is always doing so within the context of exactly one process.
-
红色有角F叔2017-05-06若送往 CRT 显示屏的红蓝绿值以线性递增,屏幕上显示出来的结果从人眼的感知上的亮度则并非线性的。视觉上来说,较暗的区域显得比理论上来说还暗。
-
DinoStray2014-03-16笔者认为STL在PC上可以无碍使用,因为PC上有高级的虚拟内存(virtual memory)系统,谨慎地分配内存变得不那么紧要。在游戏主机上,只有有限的(甚至没有)虚拟内存功能,而且缓存命中失败的代价极高,游戏开发者最好编写自定义的数据结构,保证是可预期或有限的内存分配模式。