[SDL] SDL 1.3 roadmap...
Max Horn
max at quendi.de
Wed Oct 10 04:08:22 PDT 2007
On Mi, Oktober 10, 2007 12:08, Ross Smith wrote:
> Torsten Giebl wrote:
>> Hello !
>>
>>
>>> One thing I'd like to know about SDL 1.3: Is it going to finally remove
>>> the restriction that SDL functions can only be called from the main
>>> thread? SDL's strong orientation to an old-fashioned, single-threaded,
>>> event-driven architecture is the reason I'm currently investigating
>>> alternative libraries. It's just getting more and more painful trying
>>> to
>>> reconcile SDL with a heavily multithreaded application.
>>>
>>> I could live with restricting all SDL calls to a single thread if I had
>>> to, if only it didn't have to be the main thread. Is there any prospect
>>> of some relief on the horizon?
>>
>> The reason for this was always named that most
>> OSes only support event handling and drawing
>> from the main thread.
>>
>> For which OS is this true and for which false ?
>
> It certainly isn't true on Windows or Linux. I don't have much
> experience with Mac programming but I'm pretty sure it isn't true there
> either.
>
Actually, it is true (at least to quite some extent) for Mac OS X. Event
handling and drawing from threads other than the main thread is
problematic to put it nicely. At least that was the state of things 1-2
years ago, but I am pretty sure nothing changed in that regard. But I am
also sure that somebody will very soon correct me if I am wrong here :-).
Cheers,
Max
More information about the SDL
mailing list