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

Author Topic: High Cpu usage SFML 2.0  (Read 14545 times)

0 Members and 1 Guest are viewing this topic.

nonikel

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: High Cpu usage SFML 2.0
« Reply #15 on: October 26, 2012, 06:45:28 pm »
I canĀ“t find Joystick::update in window.cpp and WindowImpl.cpp.
Should i comment out something different?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: High Cpu usage SFML 2.0
« Reply #16 on: October 26, 2012, 06:48:31 pm »
Sorry, it's
JoystickManager::getInstance().update();
at line 148 of WindowImpl.cpp.
Laurent Gomila - SFML developer

nonikel

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: High Cpu usage SFML 2.0
« Reply #17 on: October 26, 2012, 10:57:01 pm »
Now everything runs fine i have 2% Cpu usage  :)
Thank you

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: High Cpu usage SFML 2.0
« Reply #18 on: October 26, 2012, 11:04:26 pm »
By the way, did you have this problem with SFML 2.0 RC or with the latest sources?
Laurent Gomila - SFML developer

nonikel

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: High Cpu usage SFML 2.0
« Reply #19 on: October 26, 2012, 11:05:36 pm »
With the Rc and the latest source!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: High Cpu usage SFML 2.0
« Reply #20 on: October 26, 2012, 11:13:59 pm »
Strange, I solved this problem after the RC :-\
Laurent Gomila - SFML developer

nonikel

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: High Cpu usage SFML 2.0
« Reply #21 on: October 26, 2012, 11:26:52 pm »
It was LaurentGomila-SFML-2.0-rc-97-g109d914.tar

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: High Cpu usage SFML 2.0
« Reply #22 on: October 27, 2012, 03:50:37 pm »
Tried to reproduce this out of interest, but couldn't get it to work bug out.

I've got a Logitech Mouse (no drivers) and a Logitech Keyboard (with Logitech drivers), but CPU load sticks to 0% with or without an Xbox360 controller connected.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: High Cpu usage SFML 2.0
« Reply #23 on: October 27, 2012, 05:53:35 pm »
Quote
It was LaurentGomila-SFML-2.0-rc-97-g109d914.tar
I don't remember all commit hashes :P
From when is it?
Laurent Gomila - SFML developer

nonikel

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: High Cpu usage SFML 2.0
« Reply #24 on: October 27, 2012, 08:28:42 pm »
I downloaded it on friday a few hours after i created this thread.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: High Cpu usage SFML 2.0
« Reply #25 on: October 27, 2012, 08:53:56 pm »
Ok, thanks.
Laurent Gomila - SFML developer

 

anything