Hardware scaling / G400 / supported?

Hello,

I have a Matrox G400. I’m trying to figure out if SDL is utilizing the
hardware scaling features of the card. Basically, if I run something
like zsnes, xmame, or mplayer with SDL output and at the native
resolution, it runs excellent and at full speed. However, I prefer to
use these applications in full-screen mode.

Changing any application to fullscreen mode incurs a performance hit
from 1/3 to 1/2 of the normal FPS that I get in each application. If I
use the Xv output of mplayer, the problem is solved and fullscreen is
running with no slowdown. I threw away the xmame binary and compiled it
from source with the Xv output, and it too runs at full speed and full
screen. However, the problem with using Xv is that the taskbar doesn’t
go away and other applications like to refresh their windows over the Xv
output occasionally. :frowning: Also, only a few emulators supports Xv output,
so it’s not a general solution.

Does anyone have any idea how to increase the framerate when using
scaled video in applications such as emulators?

thanks!–
Ryan Underwood, , icq=10317253

Hello Ryan,

Friday, May 9, 2003, 12:59:35 PM, you wrote:

RU> Does anyone have any idea how to increase the framerate when using
RU> scaled video in applications such as emulators?

Use windows :wink: There are some problems with blit acceleration in
linux. You’ll need to tune system for looong time to gain
acceleration… Try upgrading Matrox drivers - works with Nvidia
(latest nvidia linux drivers have hardware 2d acceleration).–
Lynx,
http://foo.lynx.lv mailto:@Anatoly_R

[…]

Does anyone have any idea how to increase the framerate when using
scaled video in applications such as emulators?

Not a general solution either in it’s current form (not an SDL
backend), but you could try compiling the SDL apps with glSDL:

http://olofson.net/mixed.html

It accelerates all SDL 2D blits to the screen, including alpha and
colorkey. It will also scale on the fly if you try to use a
resolution below 640x480.

Note that glSDL doesn’t mix particularly well with some forms of
software rendering. Rendering into surfaces that are blitted to the
screen should be ok; works like procedural textures. Locking and
messing with the screen is only possible in the version on my disk
(to be 0.4), and still doesn’t work if the display is scaled.

//David Olofson - Programmer, Composer, Open Source Advocate

.- The Return of Audiality! --------------------------------.
| Free/Open Source Audio Engine for use in Games or Studio. |
| RT and off-line synth. Scripting. Sample accurate timing. |
`-----------------------------------> http://audiality.org -’
http://olofson.nethttp://www.reologica.se —On Friday 09 May 2003 11.59, Ryan Underwood wrote:

Hi!On Fri, May 09, 2003 at 01:47:37PM +0300, Anatoly R. wrote:

Hello Ryan,

Friday, May 9, 2003, 12:59:35 PM, you wrote:

RU> Does anyone have any idea how to increase the framerate when using
RU> scaled video in applications such as emulators?

Use windows :wink: There are some problems with blit acceleration in
linux. You’ll need to tune system for looong time to gain
acceleration… Try upgrading Matrox drivers - works with Nvidia
(latest nvidia linux drivers have hardware 2d acceleration).

This may sound rather silly, but is it possible for SDL to use Xv as a
backend renderer? Xv works perfectly (on my card at least) but the
applications that use Xv for rendering don’t seem to have the consistent
behavior of SDL with respect to window attributes, fullscreen, etc.


Ryan Underwood, , icq=10317253

Hello,

I have a Matrox G400. I’m trying to figure out if SDL is utilizing the
hardware scaling features of the card. Basically, if I run something
like zsnes, xmame, or mplayer with SDL output and at the native
resolution, it runs excellent and at full speed. However, I prefer to
use these applications in full-screen mode.

Changing any application to fullscreen mode incurs a performance hit
from 1/3 to 1/2 of the normal FPS that I get in each application. If I
use the Xv output of mplayer, the problem is solved and fullscreen is
running with no slowdown. I threw away the xmame binary and compiled it
from source with the Xv output, and it too runs at full speed and full
screen. However, the problem with using Xv is that the taskbar doesn’t
go away and other applications like to refresh their windows over the Xv
output occasionally. :frowning:

What distribution and more specifically which window manager are you
using? I’ve got no problems with Xv fullscreen output under RH9 /
Gnome2. Sound like broken drivers or a broken window manager…

Also, only a few emulators supports Xv output,
so it’s not a general solution.
Does anyone have any idea how to increase the framerate when using
scaled video in applications such as emulators?

An alternative is to define some low resolution X modes if you don’t
have them already and let X change the resolution. You lose the video
scaler’s filtering, but I like the crisp image more.

KlaasjanOn Fri, 2003-05-09 at 11:59, Ryan Underwood wrote: