[fpc-pascal] FPC Graphics options?
Brian
vmst at golden.net
Thu May 18 17:43:14 CEST 2017
Ryan Joseph wrote
>> On May 18, 2017, at 9:19 PM, Reimar Grabowski <
> reimgrab@
> > wrote:
>>
>> By getting the source of Graemes test, using a profiler on it and having
>> a look at the results?
>
> I tried (had to change the code to support SDL 2 even) but gave up after
> it crashed on one line. Graeme suggested a staggering difference in
> performance and I was extremely curious to see if those calls to Floor()
> were causing it. Hopefully this was a red herring and FPC isn’t as bad as
> the test suggests.
>
> Regards,
> Ryan Joseph
>
> _______________________________________________
> fpc-pascal maillist -
> fpc-pascal at .freepascal
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
You must treat SDL2.0 as a single threaded library. You can open a window in
any thread , but whichever thread in which you create the window , all
subsequent function calls to SDL2.0 must be made from within that thread ,
including events otherwise strange behavior or crashes will ensue.
Brian
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/FPC-Graphics-options-tp5728513p5728697.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal
mailing list