[osg-users] Minor change proposal : Blacklist usage of all unsized texture internat format

Gedalia Pasternak gpasternak at mak.com
Thu Aug 16 08:46:10 PDT 2018


glTexStorage is much faster then glTexImage because it allocates the whole
memory buffer in one shot, glTeximage take quite a bit longer to allocate
the memory, not sure if it's 1.3333x or even longer than that due to
reallocing and moving the memory if needed. I'm running off 3.4 and made a
number of fixes to try and make sure glTexStorage was used all of the time.
-gedalia

On Thu, Aug 16, 2018 at 3:41 AM, Robert Osfield <robert.osfield at gmail.com>
wrote:

> Hi Julien,
>
> On Thu, 16 Aug 2018 at 02:30, Julien Valentin
> <julienvalentin51 at gmail.com> wrote:
> > Immutable Storage  mandatory for lot of GL4 features:
> > TextureImage synchronization,TextureView, persistance mapping, virtual
> texture and surely other stuff I didn't used yet
>
> Thanks, this is what I was missing.  I had been searching online for
> discussion about glTexStorage vs glTexImage but didn't come across
> compelling reasons.
>
> If these modern features don't work without glTexStorage usage then do
> we have to have a flag in osg::Texture saying it's being actively
> used?  Or is good enough to just make sure glTexStorage is used widely
> enough and all GL4 usage that depends upon it all check the
> GLExtensions.
>
> Robert.
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
DI-Guy Engineering Lead, VT MÄK
150 Cambridge Park Drive, 3rd Floor, Cambridge, MA 02140
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180816/3a7ec28a/attachment.html>


More information about the osg-users mailing list