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

Author Topic: Performanceproblems with 2.2?  (Read 14964 times)

0 Members and 1 Guest are viewing this topic.

s.baus

  • Newbie
  • *
  • Posts: 45
    • View Profile
Performanceproblems with 2.2?
« on: March 18, 2015, 03:11:10 pm »
Hello everybody,

I'm facing performanceproblems when setting the PlayingOffset with 2.2. Is there anything known? With an ogg file with a length of about 2 hours, setting the PlayingOffset to lets say about 1hour 30 minutes, I need to wait about 30 seconds for the code to run on. Is anybody facing this problem?

Thanks for your help
Sven
AudioCuesheetEditor, your #1 CuesheetEditor.

http://sourceforge.net/projects/audiocuesheet

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Performanceproblems with 2.2?
« Reply #1 on: March 18, 2015, 03:17:27 pm »
Do you mean that this problem didn't happen with SFML 2.1?
Laurent Gomila - SFML developer

s.baus

  • Newbie
  • *
  • Posts: 45
    • View Profile
Re: Performanceproblems with 2.2?
« Reply #2 on: March 18, 2015, 03:53:33 pm »
I just did a retest with 2.1, i'm also facing the problem with this release :(. Sorry for bothering you. Just tested it with mp3 (I did myself), that works performant, but ogg has pour performance. Are there any plans to tweak the performance?
AudioCuesheetEditor, your #1 CuesheetEditor.

http://sourceforge.net/projects/audiocuesheet

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Performanceproblems with 2.2?
« Reply #3 on: March 18, 2015, 04:31:45 pm »
Nothing changed with regards to playing offsets in the bindings. Show complete and minimal example that reproduces it.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

s.baus

  • Newbie
  • *
  • Posts: 45
    • View Profile
Re: Performanceproblems with 2.2?
« Reply #4 on: March 19, 2015, 07:41:30 am »
Well, I'm not sure any more, if it has to do with the bindings, or is a problem of SFML itself. When I set a new music object with the ogg file from above it also hangs about 5 till 10 seconds. If I set the PlayingOffset more at the end, the thread stops longer than if I set the PlayingOffset more to the start. Seems like the stream seeking is a bit unperformant, but has anybody else problems with this?
AudioCuesheetEditor, your #1 CuesheetEditor.

http://sourceforge.net/projects/audiocuesheet

Dejan Geci

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Performanceproblems with 2.2?
« Reply #5 on: March 19, 2015, 08:01:14 am »
Reproduced:
namespace OggSlowdown
{
  using SFML.Audio;
  using SFML.System;

  class Program
  {
    static void Main(string[] args)
    {
      var oggMusic = new Music("Mixdown.ogg"); // Use attached file
      oggMusic.PlayingOffset = Time.FromSeconds(60 * 60); // Slowdown here
      oggMusic.Play();
    }
  }
}
 

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Performanceproblems with 2.2?
« Reply #6 on: March 19, 2015, 01:41:24 pm »
I tried your file, and sure SFML slows down with it... but there is something wrong with the file. VLC Media Player won't read that file right and neither will Audacity.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

Dejan Geci

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Performanceproblems with 2.2?
« Reply #7 on: March 19, 2015, 01:50:18 pm »
I used Studio One to generate an empty ogg file, tested it in Winamp and it worked fine.

I will re-check it with another ogg.

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Performanceproblems with 2.2?
« Reply #8 on: March 19, 2015, 02:22:08 pm »
Ok, I did more digging, the entire freeze happens within libsndfile. So either the freeze has been around for 4+ years when seeking or libsndfile has magically changed. Either way its not a problem with the bindings.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Performanceproblems with 2.2?
« Reply #9 on: March 19, 2015, 02:23:15 pm »
You could try with the latest SFML sources, now that we don't use libsndfile anymore.
Laurent Gomila - SFML developer

s.baus

  • Newbie
  • *
  • Posts: 45
    • View Profile
Re: Performanceproblems with 2.2?
« Reply #10 on: March 20, 2015, 08:00:40 am »
You could try with the latest SFML sources, now that we don't use libsndfile anymore.

Is it possible to get the SFML and CSFML compiled? I'm not able to build them myself, just managed to build the SFML.Net myself.
AudioCuesheetEditor, your #1 CuesheetEditor.

http://sourceforge.net/projects/audiocuesheet

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Performanceproblems with 2.2?
« Reply #11 on: March 20, 2015, 08:46:44 am »
There are nightly builds, but I don't know if they are recent enough.
Laurent Gomila - SFML developer

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Performanceproblems with 2.2?
« Reply #12 on: March 20, 2015, 12:42:49 pm »
I'm not guaranteeing anything... but I tried the latest SFML master and it didn't freeze when seeking.

http://zbrown.net/download/CSFML+Master+-+57d3ee0d8973aa3b81540fe6fa7202fa68044212.zip
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

Dejan Geci

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Performanceproblems with 2.2?
« Reply #13 on: March 20, 2015, 02:11:00 pm »
Tested with your CSFML build and there was no slowdown. Most likely and issue with libsndfile, as Laurent suggested.

s.baus

  • Newbie
  • *
  • Posts: 45
    • View Profile
Re: Performanceproblems with 2.2?
« Reply #14 on: March 20, 2015, 03:21:23 pm »
Since I use the bindings also on linux, what are the plans for a release 2.3? Or can you update the 2.2? release to work with the SFML master build?
AudioCuesheetEditor, your #1 CuesheetEditor.

http://sourceforge.net/projects/audiocuesheet

 

anything