Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6374507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:29:49+00:00 2026-05-25T01:29:49+00:00

I am creating an OpenGL video player using Ffmpeg and all my videos aren’t

  • 0

I am creating an OpenGL video player using Ffmpeg and all my videos aren’t power of 2 (as they are normal video resolutions). It runs at fine fps with my nvidia card but I’ve found that it won’t run on older ATI cards because they don’t support non-power-of-two textures.

I will only be using this on an Nvidia card so I don’t really care about the ATI problem too much but I was wondering how much of a performance boost I’d get if the textuers were power-of-2? Is it worth padding them out?

Also, if it is worth it, how do I go about padding them out to the nearest larger power-of-two?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:29:49+00:00Added an answer on May 25, 2026 at 1:29 am

    Writing a video player you should update your texture content using glTexSubImage2D(). This function allows you to supply arbitarily sized images, that will be placed somewhere in the target texture. So you can initialize the texture first with a call of glTexImage() with the data pointer being NULL, then fill in the data.

    The performance gain of pure power of 2 textures strongly depends on the hardware used, but in extreme cases it may be up to 300%.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a very render expensive scene in opengl (using vertex buffer objects) and
Here is my situation. I'm creating a drawing application using OpenGL and WinAPI. My
I'm creating a game engine using wxWidgets and OpenGL. I'm trying to set up
I'm creating a kinect project in Visual Studio 2008 using OpenNi, NITE and OpenGL.
I'm having a problem with texturing objects in OpenGL using texture atlases, I'm creating
I try to learn OpenGL by creating some sort of 3D Modeler application using
I am creating an android game using opengl and a cocos2d port (http://code.google.com/p/cocos2d-android-1). I
I'm creating a drawing app ( text ) for the iPad using OpenGL. I've
I am creating an OpenGL game on a Windows 7 machine using VS2010. In
ok so im new to opengl and im creating a pool game using only

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.