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

Author Topic: Android: Half a second delay before launching the app  (Read 982 times)

0 Members and 1 Guest are viewing this topic.

lefreut

  • Newbie
  • *
  • Posts: 14
    • View Profile
Android: Half a second delay before launching the app
« on: September 07, 2015, 10:34:47 am »
Hello,

Is the 'sleep(seconds(0.5));' in MainAndroid.cpp intentional ? It's not long but it's still visible that the app does not start immediately.

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Android: Half a second delay before launching the app
« Reply #1 on: September 07, 2015, 10:44:56 am »
It's a hack in the current implementation to give background stuff time to happen (like context creation). It's most likely not going to stay, once the other things are fixed.

In short, it's just there to prevent a race condition between multiple threads.

 

anything