经过很长一段时间(比如一个月),我可以通过Direct3D11、Direct3D10、Direct2D和DirectWrite在我的应用程序上呈现文本字体。现在我已经找到了解决方案,我注意到在绘制一些文本时,FPS (每秒帧速率)的速度很慢,有什么建议吗?
编辑:
分析应用程序需要花费大量时间的函数是d2dRender ->DrawText(.);其中d2dRender是一个ID2DRendertTarget指针
发布于 2014-02-13 19:39:59
在对其进行修改之后,我才解决了绘图文本的问题,并且只绘制了渲染纹理,例如:
if (myTextObject->IsChanged)
{
d2dRenderTarget->DrawText(...); // and what else we need to draw on the surface
}
// Draw my Texture here (surface)https://stackoverflow.com/questions/21628907
复制相似问题