Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: OpenGL: VBO and a broken GC

Hybrid View

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2013
    Posts
    7

    OpenGL: VBO and a broken GC

    I have recently tried the use of VBO. I just copy pasted the code from this site(This site preventing me to post the URL)

    It compiles fine and seems running well. However, I noticed on the taskmanager that the program runs at 50% CPU usage. Its just a simple triangle, nothing else. I was expecting it to be of 0% because all of other programs I created in glfw3 runs on 0% when idle. I know that V-SYNC in glfw3 is set true by default, but still I add this line of code to ensure
    Code :
    glfwSetInterval(GL_TRUE); //sets V-SYNC on
    but still nothings changed.

    After messing with the `test_vs.glsl` (I think this has nothing to do with the problem):

    code I changed:

    from

    Code :
    in vec3 vp;
     
        void main ()
        {
            gl_Position = vec4 (vp, 1.0);
        }

    to

    Code :
    in vec2 vp;
     
        void main ()
        {
            gl_Position = vec4 (vp, 0, 1.0);
        }

    And changed attributes of vertex in .cpp code to 2D.

    Running several times the `Hello Triangle` program again, computer stops and hang a bit ---> Then **CRAASSH**. The graphics card is broken! (literally ouch). The computer shutdowns itself, and I try rebooting it again, I got a screen with full of random lines displaying and fail to continue on desktop.

    I don't have much of the information about the graphics card but glew says
    GeForce 7300 GT/PCI/SSE2/3DNOW!
    and running on Windows XP with OpenGL v2.1 support according to glew.

    Some of the extensions I added:

    • Code :
      glfwWindowHint(GLFW_SAMPLES, 4);
    • Code :
      glfwWindowHint(GLFW_OPENGL_CORE_PROFILE, 2);
    • Code :
      glewExperimental = GL_TRUE;
    • And I add the prefix ARB to any function related to VBO



    I suspect this is due to lack of OpenGL extensions support check. But, is that so really the problem? Is it the simple program or other? If so, why would they let this to happen?
    Last edited by mr5zzz; 01-08-2014 at 07:59 PM.

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    3,124
    That is very unusual. No OpenGL code you can write for your GPU should be able to permanently crash your computer unless your computer/GPU is insufficiently powered and cooled, or the hardware is flaky. If it isn't, then of course you can do hardware damage. But this isn't a fault of OpenGL or an OpenGL driver. It's the fault of the person that built your system, or just due to the hardware getting old.

    Case-in-point. If your GPU has a fan, and over the many years the fan gets wedged up (dust, bearings fail,
    etc.), you're system's ready for a crash. GeForce 7 is pretty darn old at this point.

    (Also, don't cross post -- that is, don't post multiple copies of the same message to different boards on this forum. I deleted your other post.)

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Jan 2007
    Posts
    1,135
    50% CPU in Task Manager, by the way, indicates that (1) you've got a dual-core CPU, and (2) you're using some form of busy-waiting in your main loop (you may not even be explicitly doing this; your driver may be the one that's at fault here). Busy-waiting will chew up CPU usage like this even if it seems to be doing nothing (or not much).

  4. #4
    Junior Member Newbie
    Join Date
    Jul 2013
    Posts
    7
    It has been done already, I cannot do anything about it, anyway, I got a new GC again, same as the old one that have crashed. Now I feared to do GLSL again.

  5. #5
    Newbie Newbie
    Join Date
    Feb 2014
    Posts
    1
    Running several times the `Hello Triangle` program again, computer stops and hang a bit ---> Then **CRAASSH**. The graphics card is broken! (literally ouch). The computer shutdowns itself, and I try rebooting it again, I got a screen with full of random lines displaying and fail to continue on desktop.

Posting Permissions

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