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

Author Topic: SFML Debug Time Takes 40 Seconds To Open  (Read 2151 times)

0 Members and 1 Guest are viewing this topic.

kreezy

  • Newbie
  • *
  • Posts: 5
    • View Profile
SFML Debug Time Takes 40 Seconds To Open
« on: July 24, 2018, 10:15:07 pm »
 Hello :)

I've recently ran into an issue with SFML where debugging (on visual studio 2017) consistently takes 40 seconds. Debugging was working fine, then abruptly it began taking exactly 40 seconds to load the window. The console application loads immediately, but then the SFML window takes 40 seconds.

I created a new project to see if the same issue occurred, and it did

Here's the only code:

#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}

kreezy

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: SFML Debug Time Takes 40 Seconds To Open
« Reply #1 on: July 25, 2018, 07:46:00 am »
Anyone know if this is because im using VS 2017? Thanks

Edit:
Nevermind, just tried on VS 2015, same issue :(
« Last Edit: July 25, 2018, 08:03:11 am by kreezy »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10823
    • View Profile
    • development blog
    • Email
Re: SFML Debug Time Takes 40 Seconds To Open
« Reply #2 on: July 25, 2018, 08:22:53 am »
Loading debug symbols does take time. Have you activated to download Windows debug symbols? That can take quite a while as well.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

kreezy

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: SFML Debug Time Takes 40 Seconds To Open
« Reply #3 on: July 25, 2018, 05:55:34 pm »
Thanks for the reply
So if I download them it'll fix it? How do I download them?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10823
    • View Profile
    • development blog
    • Email
Re: SFML Debug Time Takes 40 Seconds To Open
« Reply #4 on: July 25, 2018, 06:53:30 pm »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

kreezy

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: SFML Debug Time Takes 40 Seconds To Open
« Reply #5 on: July 25, 2018, 07:42:42 pm »
Just tried that. Issue still occurs

Does it help knowing that it's exactly 40 seconds each debug session?

kreezy

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: SFML Debug Time Takes 40 Seconds To Open
« Reply #6 on: July 28, 2018, 06:20:04 am »
bump :D

FRex

  • Hero Member
  • *****
  • Posts: 1845
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: SFML Debug Time Takes 40 Seconds To Open
« Reply #7 on: July 28, 2018, 06:22:53 am »
Use VS Diagnostic tool to try find out what takes so long?
Back to C++ gamedev with SFML in May 2023