SFML community forums

Help => General => Topic started by: slotdev on October 18, 2013, 03:13:11 pm

Title: Multithreading question
Post by: slotdev on October 18, 2013, 03:13:11 pm
Hi

I should know the answer to this, but I don't.

If I launch a thread from within my SFML app, and open a new window, load graphics, etc, is this effectively a new instance of SFML? So everything is separate from the main thread which has it's own windows etc.

Thanks!
Title: Re: Multithreading question
Post by: Laurent on October 18, 2013, 03:30:35 pm
There's no "instance" of SFML. So yes, everything is separate, except that there are a few globals internally (especially about OpenGL context management) that will always be shared.
Title: Re: Multithreading question
Post by: slotdev on October 18, 2013, 10:24:11 pm
Thanks Laurent, I thought as much.

After the saga of trying to use 3 monitors, 1 on another video card - I have it (almost) working, but I can only get 5fps out of the 2nd video card. Why can't life be simple and things just work.....