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 254735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:52:18+00:00 2026-05-11T21:52:18+00:00

I am learning OpenGL and recently discovered about glGenTextures. Although several sites explain what

  • 0

I am learning OpenGL and recently discovered about glGenTextures.
Although several sites explain what it does, I feel forced to wonder how it behaves in terms of speed and, particularly, memory.

Exactly what should I consider when calling glGenTextures? Should I consider unloading and reloading textures for better speed? How many textures should a standard game need? What workarounds are there to get around any limitations memory and speed may bring?

  • 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-11T21:52:18+00:00Added an answer on May 11, 2026 at 9:52 pm

    According to the manual, glGenTextures only allocates texture “names” (eg ids) with no “dimensionality”. So you are not actually allocating texture memory as such, and the overhead here is negligible compared to actual texture memory allocation.

    glTexImage will actually control the amount of texture memory used per texture. Your application’s best usage of texture memory will depend on many factors: including the maximum working set of textures used per frame, the available dedicated texture memory of the hardware, and the bandwidth of texture memory.

    As for your question about a typical game – what sort of game are you creating? Console games are starting to fill blu-ray disk capacity (I’ve worked on a PS3 title that was initially not projected to fit on blu-ray). A large portion of this space is textures. On the other hand, downloadable web games are much more constrained.

    Essentially, you need to work with reasonable game design and come up with an estimate of:
    1. The total textures used by your game.
    2. The maximum textures used at any one time.

    Then you need to look at your target hardware and decide how to make it all fit.

    Here’s a link to an old Game Developer article that should get you started:
    http://number-none.com/blow/papers/implementing_a_texture_caching_system.pdf

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

Sidebar

Related Questions

I've recently started learning OpenGl through the SB fifth edition, unfortunately got stuck right
I'm learning about how to use JOGL and OpenGL to render texture-mapped quads. I
I recently satrted learning OpenGL, and it seems pretty intuitive so far, but this
I've been writing programs using OpenGL. Recently, I started learning OpenGL Shading Language. I'm
I have been learning OpenGL and SDL lately and I've become rather confused about
Having only recently started learning the 'new' OpenGL (programmable as opposed to fixed-function, I
I'm learning about openGL and how to do transformations such as translating and scaling.
I've recently started learning programming to make my own 3D OpenGL game on the
I have been learning opengl for about 4-5 months now. I am ready to
I am learning OpenGL from this tutorial . My question is about the specification

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.