You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using GL_UNSIGNED_BYTE as the index type for glDrawElements on a modern AMD system with OpenGL debug messages enabled, the following message is emitted:
OpenGL PERFORMANCE [API]: glDrawElements uses element index type 'GL_UNSIGNED_BYTE' that is not optimal for the current hardware configuration; consider using 'GL_UNSIGNED_SHORT' instead
As the message implies, short indices should be faster on modern GPUs than byte ones. For that reason, and also to suppress the message, it's probably a good idea for osg::createTexturedQuadGeometry to use DrawElementsUShort instead.
I'm not sure of the relative performance impact on older and mobile GPUs, but if it's negligible, it's potentially worth accepting to suppress the message. As the driver generates the message for every call it's not happy with, it doesn't take many textured quad geometries to swamp more useful messages from calls generating errors or that take longer on account of having more vertices.
The text was updated successfully, but these errors were encountered:
When using
GL_UNSIGNED_BYTE
as the index type forglDrawElements
on a modern AMD system with OpenGL debug messages enabled, the following message is emitted:OpenGL PERFORMANCE [API]: glDrawElements uses element index type 'GL_UNSIGNED_BYTE' that is not optimal for the current hardware configuration; consider using 'GL_UNSIGNED_SHORT' instead
As the message implies, short indices should be faster on modern GPUs than byte ones. For that reason, and also to suppress the message, it's probably a good idea for
osg::createTexturedQuadGeometry
to useDrawElementsUShort
instead.I'm not sure of the relative performance impact on older and mobile GPUs, but if it's negligible, it's potentially worth accepting to suppress the message. As the driver generates the message for every call it's not happy with, it doesn't take many textured quad geometries to swamp more useful messages from calls generating errors or that take longer on account of having more vertices.
The text was updated successfully, but these errors were encountered: