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

The Archive Base Latest Questions

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

Working on a game, and I was testing out my renderer. It unfortunately only

  • 0

Working on a game, and I was testing out my renderer. It unfortunately only runs at about 4 frames per second. Profiling reveals that surprisingly, only 5% of that runtime belongs to my code, and the remaining 95% of the total run time was spent in nvoglnt.dll.

Only one 256×256 texture is used though, and beyond that, the only openGL code I use outside of a few camera transformations is this following template of code. It is executed only 134217728 times for a total of 33554432 quads.

glTexCoord2f(u, v);
glColor3f(r, g, b);
glVertex3f(x, y, z);

What could I be doing wrong that’s causing OpenGL to become so slow? Are there any common performance techniques I could use to improve it?

  • 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-25T20:51:29+00:00Added an answer on May 25, 2026 at 8:51 pm

    It is executed only 134217728 times for a total of 33554432 quads.

    Each of those “few” calls makes your system to switch execution context between your program and the OpenGL driver. This is not “few”. Honestly I’d consider this question some fine trolling, because each and every OpenGL tutorial these days will tell you not to use immediate mode for excactly that serious performance hit you observed, which immediate mode causes, i.e. glBegin, glEnd, glVertex and so on.

    Use Vertex Arrays or better yet Vertex Buffer Objects.

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

Sidebar

Related Questions

We're working on a multiplayer game, however we've run into some problems testing. I
Alright so here is my issue. I'm working a game engine that will eventually
I'm working on a game (C#) that uses a Robocode-like programming model: participants inherit
I've been working on a game engine for awhile. I've started out with 2D
Working on a game project that involves a scripting language that I want to
I'm working on a game which has different modules that I am developping on
I've been trying to get this Sudoku game working, and I am still failing
I'm working on a game where I create a random map of provinces (a
I'm working on a game (using Ruby) and planning to have it available in
I'm working on a game engine in C++ and I have methods like setColour

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.