Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: GPU usage is very high AMD 5870  (Read 3554 times)

0 Members and 1 Guest are viewing this topic.

Fantasy

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
GPU usage is very high AMD 5870
« on: May 20, 2011, 05:28:11 pm »
hello everyone
i have a 5870 with Drivers 11.5 and my GPU usage is 60% when i build and run my game in SFML.
i don't have anything in my game its just a black windows, so why is it using 60% ?!!
thankx

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
GPU usage is very high AMD 5870
« Reply #1 on: May 20, 2011, 05:31:33 pm »
Is it really the GPU, or do you mean "the CPU"?
Laurent Gomila - SFML developer

Fantasy

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
GPU usage is very high AMD 5870
« Reply #2 on: May 20, 2011, 05:35:07 pm »
Quote from: "Laurent"
Is it really the GPU, or do you mean "the CPU"?


yes its the GPU not CPU.
its the graphics processing unit that is getting 60% usage

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
GPU usage is very high AMD 5870
« Reply #3 on: May 20, 2011, 05:42:15 pm »
How can you see the GPU consumption?

Can you show us your source code?
Laurent Gomila - SFML developer

Fantasy

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
GPU usage is very high AMD 5870
« Reply #4 on: May 20, 2011, 05:53:50 pm »
Quote from: "Laurent"
How can you see the GPU consumption?

Can you show us your source code?


i use AMD Catalyst Control Center to see my GPU usage.
as for the source code its just a simple black windows

Code: [Select]

#include <SFML/Window.hpp>

int main()
{
    sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");

    bool Running = true;
    while (Running)
    {
        App.Display();
    }

    return 0;
}

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
GPU usage is very high AMD 5870
« Reply #5 on: May 20, 2011, 06:18:10 pm »
Well that's because your framerate there will be huge. You never sleep or wait anything so you will be running as fast as the CPU can.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

Fantasy

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
GPU usage is very high AMD 5870
« Reply #6 on: May 20, 2011, 07:10:15 pm »
Quote from: "Groogy"
Well that's because your framerate there will be huge. You never sleep or wait anything so you will be running as fast as the CPU can.


so if i lock my frame rate to 60 it will lower both cpu and gpu usage right ?

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
GPU usage is very high AMD 5870
« Reply #7 on: May 20, 2011, 09:03:21 pm »
It should.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

alphazeeno

  • Newbie
  • *
  • Posts: 14
    • View Profile
GPU usage is very high AMD 5870
« Reply #8 on: May 23, 2011, 01:45:14 am »
Try using

Code: [Select]
App.SetFramerateLimit(60);

and,

Code: [Select]
App.EnableVerticalSync(true)

right after your window initialization.

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
GPU usage is very high AMD 5870
« Reply #9 on: May 23, 2011, 02:12:35 am »
Quote from: "alphazeeno"
Try using

Code: [Select]
App.SetFramerateLimit(60);

and,

Code: [Select]
App.EnableVerticalSync(true)

right after your window initialization.
That's redundant, if you do both, only one will be used, which is VSync, iirc. Just set the framerate limit to 60.
I use the latest build of SFML2

 

anything