61
System / Overhead of sf::Thread::Launch
« on: April 24, 2011, 03:24:07 pm »
Oh, I see! Thanks Mjonir - that has made things clearer.
Do you mean as I did in my original post? Laurent suggested the Launch function may be performance heavy so, while I am not very sure about multithreading yet (hence this forum post...), I am guessing it is worse to keep relaunching the thread. How big are you intending X to be?
Quote
if I have a small task to do once in a while (like deleting stuff I don't need, or moving something on the screen), is it really more efficient to launch a thread every X ms that does the job and then disappears than to have a permanent thread that sleeps for X ms after its job is done? Or is it roughly the same?
Do you mean as I did in my original post? Laurent suggested the Launch function may be performance heavy so, while I am not very sure about multithreading yet (hence this forum post...), I am guessing it is worse to keep relaunching the thread. How big are you intending X to be?