答复: [cpp] 游戏较高的内存占用问题

千里马肝 oiramario at gmail.com
Wed Jun 7 13:51:38 CST 2006


When entering a new level in a game, your application might need to flush all managed textures from video memory (by calling IDirect3DDevice9::EvictManagedResources). 

-----原始邮件-----
发件人: cpp-bounces at codingnow.com [mailto:cpp-bounces at codingnow.com]代表
卢立璵(bad_fish)
发送时间: 2006年6月6日 22:44
收件人: C++ Discuss Group
主题: Re: [cpp] 游戏较高的内存占用问题


如果你选择了 managed 的方式创建的 texture 的话,顾名思义,dx
全盘接管,你也就没有管理的能力了,在显存中贴图丢失的时候,dx 会自动通过在内存中的副本来重新创建显存中的贴图。

On 6/6/06, jmulro <jmulro at 163.com> wrote:
>
>
> 请问如何手动释放位于显存里的Texture的副本呢?
> 谢谢..
>

_______________________________________________
Cpp mailing list
Cpp at codingnow.com
http://codingnow.com/mailman/listinfo/cpp



More information about the Cpp mailing list