High CPU/GPU usage on opengGL demos

Home Forums General Discussion High CPU/GPU usage on opengGL demos

This topic contains 1 reply, has 2 voices, and was last updated by  Paul Varcholik 2 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #327

    larsgregersen
    Participant

    Hi

    When running the demos from OpenGL Essentials I see that the CPU is 50% busy (a full core) and the GPU is 20% busy. I think that this is a heavy load on the computer since the graphics is very simple and the geometry is static most of the time.

    What can be done to reduce the load on the CPU/GPU such that I can start using the CPU for other (real) things?

    #328

    Paul Varcholik
    Keymaster

    Hello,

    Optimizing the game loop is my first suggestion. The existing game loop is as simple as it gets — it runs as fast as it can and this will consume more resources than necessary.

    Here’s a good read on the topic of Game Loops, from the book/e-book Game Programming Patterns by Robert Nystrom.

    Paul

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.