Previous Thread
Next Thread
Print Thread
Page 2 of 4 1 2 3 4
Joined: Apr 2011
Posts: 292
Senior Member
Offline
Senior Member
Joined: Apr 2011
Posts: 292
I'm using a SDL2 build I compiled about 10 days ago on a Windows 7 X64 system which has 2 screens connected.

When I try and repo this it seems to be running the way it should be ---> http://i.imgur.com/FBtiJOc.jpg

If I can be of any help running some tests I can do that plus compile a latest SDL2 build if needed.


Joined: Mar 2001
Posts: 16,921
Likes: 57
R
Very Senior Member
OP Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,921
Likes: 57
I'm gonna have to ask Aaron sometime why this odd behavior is the default. Or maybe we'll just fix it in SDL and let Windows users suffer smile

Joined: Jan 2006
Posts: 3,690
Very Senior Member
Offline
Very Senior Member
Joined: Jan 2006
Posts: 3,690
I think that the "odd behavior" was intended to be a feature

http://aarongiles.com/?p=163

so to be able to control the windows independently

Joined: Mar 2001
Posts: 16,921
Likes: 57
R
Very Senior Member
OP Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,921
Likes: 57
I see. You can have different views of the same game in the different windows. I kinda think that needs to be enabled some other way than simply having multiple monitors though, and the vsync problem makes it especially annoying on SDL2 builds.

Joined: Dec 2007
Posts: 107
T
Senior Member
Offline
Senior Member
T
Joined: Dec 2007
Posts: 107
Oh ! I've justed tested MAME 0.156 and 0.157 on a (Kubuntu) machine (old laptop) that used to cope perfectly well with it (version 0.155 if not mistaken) (with Lottes CRT shader and bloom disabled). Now it's extremely slow (even with no shader). I guess that's probably the SDL2 regression you're refering to ?

What can I do to work around this issue or help you fix it ?

Edit : hmm, after reading more carefully the thread, it seems unrelated actually. I use a pretty default single screen configuration with few configuration tweaks. I'll double check and recompile 0.155 to see if it's still slow.

Edit : oh man, same problem with 0.155 (compiled by myself). It must be something else... Really sorry for the false-positive !! What's the command to check what my binary was actually built against ? (as I have both sdl1 and sdl2 dev files)

Last edited by torturedutopian; 01/05/15 04:16 PM.
Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
Originally Posted By torturedutopian
What's the command to check what my binary was actually built against ? (as I have both sdl1 and sdl2 dev files)

Try "ldd" on the binary:

Code:
rene@thunder:~/src/mame-svn> ldd ./mame64 | grep SDL
        libSDL2-2.0.so.0 => /usr/lib64/libSDL2-2.0.so.0 (0x00007f9b59d96000)
        libSDL2_ttf-2.0.so.0 => /usr/lib64/libSDL2_ttf-2.0.so.0 (0x00007f9b594a1000)

And/or run "mame -verbose" (SDL2 builds include the following output, SDL1 builds do not):

Code:
rene@thunder:~/src/mame-svn> ./mame64 -verbose
Available videodrivers: x11 dummy
Current Videodriver: x11
        Display #0
                Renderdrivers:
                            opengl (0x0)
                         opengles2 (0x0)
                          opengles (0x0)
                          software (0x0)
Available audio drivers:
        pulseaudio
        alsa
        dsp
        esd
        disk
        dummy
...


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Joined: Dec 2007
Posts: 107
T
Senior Member
Offline
Senior Member
T
Joined: Dec 2007
Posts: 107
Hi ! Thanks for the reply ! smile Here's the ldd result (what a shame I forgot this command...) :

Code:
        libSDL-1.2.so.0 => /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0 (0x00007f230a3d6000)
        libSDL_ttf-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libSDL_ttf-2.0.so.0 (0x00007f2309f92000)


So it's not SDL2's fault smile Although the -verbose option does work but does indeed display something (Using SDL single-window OpenGL driver (SDL 1.2).

cheers !

Last edited by torturedutopian; 01/05/15 06:48 PM.
Joined: Mar 2001
Posts: 16,921
Likes: 57
R
Very Senior Member
OP Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,921
Likes: 57
For me, sharp performance drops usually mean the package manager updated my video driver but I haven't yet rebooted to the new kernel it wants. Dunno if that helps for you at all smile

Joined: Dec 2007
Posts: 107
T
Senior Member
Offline
Senior Member
T
Joined: Dec 2007
Posts: 107
Well, I didn't mean to pollute this SDL2-related thread smile I have no idea what's wrong, I made many tests and get no 100% perfectly satisfactory result, although it's not that bad...

I use the proprietary Nvidia drivers / Kubuntu LTS 64 bits / latest KDE / bad GT 320M GPU and bad Celeron CPU on a several years old low end ASUS laptop. I tried to downgrade drivers to the legacy version, no difference. I use triple buffering in xorg.conf for kwin : disabled, no difference. I disabled composition in kwin : no difference. I disabled Twinview to make sure the actual screen frequency is the one reported by xrandr : no difference. Actually, when using "waitvsync" and "syncrefresh" I get a 50% performance drop. When not using "syncrefresh" but using "waitvsync" and "refreshspeed" I get a supposedly 100% framerate but it doesn't feel 100% smooth and there's a huge input delay. The best result I can get is with no option enabled (no refreshspeed, no syncrefresh, no waitvsync, compositing enabled), which leads to some tearing but at least it's fast and smooth smile

Well, I don't really mind that much, it's not a machine I use that much for MAME anyway -- I get a perfect result on a NUC.

Thanks for listening and sorry again for annoying everyone wink

Last edited by torturedutopian; 01/06/15 10:45 AM.
Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
I thought you would've seen this yourself (because you mentioned the -verbose output), but your ldd output from above shows that you're somehow mixing SDL1 and SDL2. Apparently you've made an SDL2 build but at run-time it's using SDL1 (plus SDL2's ttf lib). I'm really not sure what issues this might be causing (if any)...

Last edited by qmc2; 01/06/15 11:20 AM. Reason: I was wrong ;).

A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Page 2 of 4 1 2 3 4

Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
2 members (R. Belmont, TSCHAK), 21 guests, and 3 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,100
Posts119,241
Members5,019
Most Online890
Jan 17th, 2020
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com