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

Author Topic: [Solved] Performance drop in the current master  (Read 2032 times)

0 Members and 1 Guest are viewing this topic.

oomek

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • Email
[Solved] Performance drop in the current master
« on: April 13, 2018, 11:45:36 am »
There is a severe drop in performance in the current master when a computer is suspended and then resumed while a SFML app is running.

I tested SFML 2.4.2 and the current 2.5.0 WIP

There is a noticeable stuttering in the 2.5.0 version when PC is resumed from sleep.

2.4.2


2.5.0 WIP


Both versions cross-compiled with MXE x86_64-w64-mingw32.static toolchain

 
I could go through and compile all the commits since 2.4.2 but it could take ages. Maybe you’ve got some debugging tools that could identify the problem quicker?

https://github.com/SFML/SFML/issues/1415
« Last Edit: April 15, 2018, 02:27:54 pm by oomek »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Performance drop in the current master
« Reply #1 on: April 13, 2018, 12:13:32 pm »
Quote
I could go through and compile all the commits since 2.4.2 but it could take ages. Maybe you’ve got some debugging tools that could identify the problem quicker?
With dichotomy you'd only have to try a few commits ;)
git bisect can even help you with that.
Laurent Gomila - SFML developer

oomek

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • Email
Re: Performance drop in the current master
« Reply #2 on: April 13, 2018, 12:54:16 pm »
True, I’ve thought about applying a sorting algo to the commits after I wrote my post. I’ve never used git bisect, will look into that.

oomek

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • Email
Re: Performance drop in the current master
« Reply #3 on: April 14, 2018, 05:25:49 am »
22f1b85515242c44d7e5a1be1e3960bdf6648b52 is the first bad commit
commit 22f1b85515242c44d7e5a1be1e3960bdf6648b52
Author: binary1248
Date:   Thu Dec 21 20:54:58 2017 +0100

    Added support for interfacing with joysticks via DirectInput when it is available.
« Last Edit: April 14, 2018, 05:40:39 am by oomek »

oomek

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • Email

 

anything