MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

couriersud
Reged: 03/27/07
Posts: 214
Send PM
Re: SDL Multithreading or build issue?
12/26/14 02:12 PM


> SDL2 -video=accel should gain you more performance than -mt anyway. And it's not like
> -mt affects if e.g. Blitz/Gauntlet/Crusin' use multiple CPUs (they do even when it's
> off). Basically, -mt is known broken on baseline Windows, suspect broken on SDL
> Windows, known fatal to the OS on Mac at a may-crash-the-window-system level, and
> sometimes it works on Linux. I'm not sure why we even offer it as an option anymore.

I haven't had an issues with mt on Linux so far. The option still provides a slight performance advantage (7%) on my system:

./mame64 -mt -np 4 -str 60 -nothrottle radikalb -ad pulse -noautosave -video accel
Average speed: 174.01% (59 seconds)

./mame64 -nomt -np 4 -str 60 -nothrottle radikalb -ad pulse -noautosave -video accel
Average speed: 162.66% (59 seconds)

As the one who is originally responsible for "mt" in sdlmame I have to add that rendering in a background thread was not supported well on every OS in SDL1.2 and with SDL2 the situation seems to be worse. On the other hand I never really tested the SDL2 code on a windows build. In SDL1.2 there were differences between Linux and Windows around the initialization of certain systems either in the main thread or in the rendering thread. Maybe this has changed. But first I need to setup a working compile environment in my virtual machine again.







Entire thread
Subject Posted by Posted on
* SDL Multithreading or build issue? lamprey 12/20/14 02:11 AM
. * Re: SDL Multithreading or build issue? RobbbertModerator  12/20/14 06:58 AM
. * Re: SDL Multithreading or build issue? B2K24  12/20/14 02:18 AM
. * Re: SDL Multithreading or build issue? lamprey  12/20/14 02:49 AM
. * Re: SDL Multithreading or build issue? *DELETED* Anonymous  12/20/14 12:50 PM
. * Re: SDL Multithreading or build issue? B2K24  12/20/14 09:13 PM
. * Re: SDL Multithreading or build issue? B2K24  12/20/14 07:28 AM
. * Re: SDL Multithreading or build issue? lamprey  12/20/14 10:50 AM
. * Re: SDL Multithreading or build issue? R. Belmont  12/22/14 04:44 AM
. * Re: SDL Multithreading or build issue? couriersud  12/26/14 02:12 PM
. * Re: SDL Multithreading or build issue? couriersud  12/26/14 06:47 PM
. * Re: SDL Multithreading or build issue? B2K24  12/26/14 08:01 PM
. * Re: SDL Multithreading or build issue? couriersud  12/28/14 12:00 AM
. * Re: SDL Multithreading or build issue? B2K24  12/28/14 08:53 AM
. * Re: SDL Multithreading or build issue? couriersud  12/28/14 01:24 PM
. * Re: SDL Multithreading or build issue? Calamity  12/28/14 04:20 PM
. * Re: SDL Multithreading or build issue? couriersud  12/28/14 06:16 PM
. * Re: SDL Multithreading or build issue? Calamity  12/28/14 06:32 PM
. * Re: SDL Multithreading or build issue? couriersud  12/28/14 07:00 PM
. * Re: SDL Multithreading or build issue? B2K24  12/28/14 09:28 PM
. * Um, maybe he meant post the log? (nt) Traso  12/27/14 06:50 AM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 389 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 4584