Hello.
I was wondering why displaying graphics is quite slow on my machine.
For testing I just displayed some junk that is quickly generated.
I was working at a resolution of 1024x768 at 16bpp, and never got more
than about 38fps. I tried both hardware and software buffers, and both the
fbcon and dga drivers.
The machine is a 1400MHz Athlon with AGP graphics card. On the other hand
on a notebook running at just 400MHz, a got 105fps using the same program
and same SDL video drivers. The fbcon/X driver was different though
(riva/sis).
Therefore, I really expect much higher performance from the first machine.
So, what can be wrong with it?
Thanks for your support.
Stefan B?ttner
Stefan Boettner wrote:
Hello.
I was wondering why displaying graphics is quite slow on my machine.
For testing I just displayed some junk that is quickly generated.
I was working at a resolution of 1024x768 at 16bpp, and never got more
than about 38fps. I tried both hardware and software buffers, and both the
fbcon and dga drivers.
The machine is a 1400MHz Athlon with AGP graphics card. On the other hand
on a notebook running at just 400MHz, a got 105fps using the same program
and same SDL video drivers. The fbcon/X driver was different though
(riva/sis).
Therefore, I really expect much higher performance from the first machine.
So, what can be wrong with it?
SDL will convert surfaces if the bpp is not the same, be sure to init
your surface with SDL_DisplayFormat()
Gautier