Texture speed

This topic contains 1 reply, has 2 voices, and was last updated by  Joe Davis 6 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30686

    bedmond
    Member

    I have an application which must load images into textures at runtime. I try to load/decode the images and load them to a texture early in order to speed up render times. However it seems that the texture is not fully loaded until the first time it is used (glDrawArrays), so the first draw takes a long time. Is there a way to avoid this and have the texture fully loaded when I do the glTexImage2D? Is the time caused by texture swizzling?

    Thanks,

    Brian

    #35228

    Joe Davis
    Member

    Hi Brian,

    You are correct that texture loading is delayed until it is first used. You can force an early upload of the texture by rendering an offscreen triangle that uses the texture.

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.