1
General / Re: Event thread
« on: October 25, 2013, 03:29:47 pm »The code's missing.
There is no need to show the code, i explained everything...
To quote from the official tutorial.QuoteEvents must be polled in the window's thread
This is an important limitation of most OSes: the event loop (more precisely, the pollEvent or waitEvent function) must be called in the same thread that created the window. This means that if you want to create a dedicated thread for event handling, you'll have to make sure that the window is created in this thread too. If you really want to split things between threads, it is more convient to keep event handling in the main thread and move the rest (rendering, physics, logic, ...) to a separate thread instead. This configuration will also be compatible with the other limitation described below.
Thanks i didn't see that in sfml tutorial, thanks a lot