xmame: switch to x11 backend(to improve scaling performance on xv-enabled devices)
authorDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Sat, 27 Nov 2010 16:59:45 +0000 (17:59 +0100)
committerDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Tue, 30 Nov 2010 16:18:19 +0000 (17:18 +0100)
commitc13b5440e97979129b4efcb2c45624328e7b0d07
treea5984c61855f50a4cbf1ac276889ecf6c26266d7
parentd420ff258af140ef35fb64af4ac542cf3a1797ed
xmame: switch to x11 backend(to improve scaling performance on xv-enabled devices)

On nokia900 the sound has issues and CPU usage is 100% with the SDL backend
  when scalling the game to fullscreen
Using XV and MIT-SHM seem to improve performances:

With SDL:
  SDL found mode:800x480x16
  SDL found mode:800x480x16
  SDL: Using a mode with a resolution of: 800x480x16
  Initialized no effect: bitmap depth = 16, color format = RGB 565
  info: audiodevice (null) set to 16bit linear stereo 44100Hz
  info: sysdep_dsp: using sdl plugin
  info: dsp: using timer-based audio
  Average FPS: 16.623416 (988 frames)

With X11,XV,MIT-SHM:
  MIT-SHM & XV Extensions Available. trying to use.
  Can't find a suitable RGB format - trying YUY2 instead.
  XInput: Initialization...
  Initialized no effect: bitmap depth = 16, color format = YUY2
  Clearing YUY2
  Using Xv & Shared Memory Features to speed up
  info: set to 16bit linear stereo 44100Hz
  info: sysdep_dsp: using alsa plugin
  info: sysdep_mixer: using alsa plugin
  Average FPS: 23.254317 (828 frames)

The nokia900 has an omap SOC, that means that it can uses omapfb,
  which support xv, so using XV improve the performances in the case
  of the nokia900

And in the case where XV is not available
(XV disabled for testing purposes, still on nokia900):
  XInput: Initialization...
  MIT-SHM Extension Available. trying to use... Success.
  Using Shared Memory Features to speed up
  Initialized no effect: bitmap depth = 16, color format = RGB 565
  info: set to 16bit linear stereo 44100Hz
  info: sysdep_dsp: using alsa plugin
  info: sysdep_mixer: using alsa plugin
  Average FPS: 18.793345 (1267 frames)

Which is a bit faster than SDL.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
recipes/xmame/xmame_0.100.bb