[Interest] Qt Quick Scene Graph, texture questions, Qt 5.2.0

Ola Røer Thorsen ola at silentwings.no
Mon Jan 20 11:54:19 CET 2014


Hi, I've got 3 questions about texture use in the Qt Quick scene graph:

1.

In general it's recommended in OpenGL to use power-of-two-sized textures
whenever possible, for performance resons. Does the Qt Quick scenegraph
deal with this in any way, or is it up to the user to use properly sized
images whenever possible?

By "deal with this", it could be that the scenegraph adds some padding to
fit an image within the closest larger power-of-two size, at the cost of
wasting some memory.

2.

I've tried the option to visualize which images are put in a texture atlas (
QSG_ATLAS_OVERLAY). In my application, that has a lot of smaller icon
images (128x128 mostly), just about half of them are put in the atlas. Is
there just a single texture atlas implemented, or are there several of
them? My impression is that there is only one, and it gets filled up rather
quickly.

3.

How does Qt Quick deal with trying to show an image that is larger than the
maximum texture size supported on the targeted GPU? Does it tile several
textures internally?

Cheers,
Ola
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140120/6dc56778/attachment.html>


More information about the Interest mailing list