Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: FPS problem? What is wrong?

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2011
    Location
    TURKEY
    Posts
    4

    FPS problem? What is wrong?

    I was trying to learn texture mapping. I wrote a little code and i did it, but i have a little problem, FPS. I draw two textures and I got 207 FPS. Then, I draw ten textures and I got 45 FPS(And I want to draw 25 texture at least at the same time :s). Is this normal? I added my code here. Please, take a look and tell me what can I do?
    My project on Hotfile
    Life is too short to be someone else.

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: FPS problem? What is wrong?

    Depends on your videocard, and the quantity of pixels drawn on screen.
    What is your hardware ?

  3. #3
    Junior Member Newbie
    Join Date
    Jan 2011
    Location
    TURKEY
    Posts
    4

    Re: FPS problem? What is wrong?

    ATI Mobility Radeon HD 4650 1GB
    Intel Core 2 Duo P8700 2.53Ghz
    4GB Ram
    Windows 7 Ultimate - 64bit
    Here this my notebook? :s If this is not enough, I give up.
    Life is too short to be someone else.

  4. #4
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: FPS problem? What is wrong?

    And you are certain to run with ATI OpenGL driver, not the Microsoft software implementation ?
    What resolution is your rendering and texture surface ?

  5. #5
    Junior Member Newbie
    Join Date
    Jan 2011
    Location
    TURKEY
    Posts
    4

    Re: FPS problem? What is wrong?

    Hmmm! I really don't understand what were you ask?( I am a beginner, so sorry.) However, if you are asking my screen resolution, here it is.
    Life is too short to be someone else.

  6. #6
    Advanced Member Frequent Contributor
    Join Date
    Jan 2007
    Posts
    965

    Re: FPS problem? What is wrong?

    That really sounds like you're doing something wrong. Texture mapping is an old old old feature (1995/96!) that definitely does not have this kind of performance impact.

    I haven't reviewed your code yet, but I probably will later.

  7. #7
    Junior Member Newbie
    Join Date
    Jan 2011
    Location
    TURKEY
    Posts
    4

    Re: FPS problem? What is wrong?

    Yes. I really don't know Zbuffer you were talking about this WDDM thing? When you said, I did a little search, but I don't understand anything. However, I updated my graphics card driver and that thing (WDDM) have gone, and now my problem solved. I got 3000 fps with drawing 40 textures. That's make me happy. Thank you very much Zbuffer. I think my problem solved.
    Life is too short to be someone else.

  8. #8
    Member Regular Contributor
    Join Date
    Oct 2010
    Location
    France
    Posts
    466

    Re: FPS problem? What is wrong?

    glGetString (GL_RENDERER);
    glGetString (GL_VERSION);

    Try this after your window was created, and tell here what you have. Could be a good start.

  9. #9
    Junior Member Newbie
    Join Date
    Oct 2006
    Posts
    21

    Re: FPS problem? What is wrong?

    FPS is not a good means of measuring performance since it is non-linear. Compare your frame times instead!
    For more on this see, e.g., here

  10. #10
    Advanced Member Frequent Contributor
    Join Date
    Oct 2009
    Posts
    595

    Re: FPS problem? What is wrong?

    Oh no, you're using a laptop and laptops suck at graphics perf usually. Try a desktop system for development.

    I used to have one and tortured it with my GL experiments and
    the gfx card (Nvidia 9300M) overheated and broke.

    Try to clean your notebook now and then, before the card breaks, the perf usually gets reduced. Otherwise, try to do some batching for perf, use VBO and/or VAO.

    But anyway, if 3D games/benchmarks run ok and your app sucks at perf, then chances are you are doing something wrong.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •