문제

After long time (like one month) I'm able to render text font on my application via interoperability trough Direct3D11, Direct3D10, Direct2D and DirectWrite. Now that I've found the solution, I've noticed that while drawing some text the FPS (frame rate per second) is drammatically slowered, any suggests?

EDIT:

Profiling the application the function that take me lot time is d2dRender->DrawText(...); where d2dRender is a ID2DRendertTarget pointer

도움이 되었습니까?

해결책

I've solved drawing text only after a modification on it and drawing only the rendering texture, like:

if (myTextObject->IsChanged)
{
    d2dRenderTarget->DrawText(...); // and what else we need to draw on the surface
}

// Draw my Texture here (surface)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top