RenderTarget/RenderTexture resize


#1

I’m trying to integrate QML into BSF, by using Qt’s support for custom scenegraph renderer plugins.
Right now I’m trying to implement the resize event, which in case where the QML is rendered to a texture should change the size of the underlying RenderTexture.

Now: Is it really sub-optimal to re-create the whole RenderTexture in every resize, or should I allocate a larger RenderTexture and play around with texture coords ?


#2

Reallocate the render texture in every resize. It’s not that slow and I’m guessing resize will happen only occasionally, making performance not that important anyway. Only go with the other route if you actually experience performance issues.