|
之前在查看SDK DOC的时候看到过这样一段话,原文如下
- Note that unlike previous versions of Direct3D, the version 9 runtime will automatically evict some
- managed resources before giving up on a failed unmanaged resource allocation for a lack of video memory,
- but this can potentially create additional fragmentation and even force a resource into a sub-optimal
- location( a static texture in non-local video memory for example ). Again, it is best to allocate all
- required unmanaged resources up-front and before using any managed ones.
复制代码
现在我不理解的就是最后一句:Again, it is best to allocate all required unmanaged resources up-front and before using any managed ones.
我知道这句话是教我们怎样来解决显存不足的问题,但是我不知道在程序中应该怎样具体操作?
希望大家能帮帮我,如果能提供相关伪代码将不甚感激 [em6] |
|