[…]
I’m using it for a
custom GUI for a PIII 733 MHz machine where the application
requires smooth scrolling text over a background image.
Unless you’re using a very low resolution, that kind of stuff requires
quite some bandwidth. The way modern video cards and computers are
designed, the only way to do that properly is through h/w
acceleration, and the only remotely reliable, portable and well
performing solution at this point is OpenGL.
Also note that if you want it really smooth you need
-
double buffering with hardware page flipping
-
retrace sync
-
sub-pixel accurate rendering
-
and 2) are totally driver and system dependent, so unless you’re
working on a turnkey solution (complete hardware + software
solution), you can’t rely on getting that. They are, however, an
absolute requirement for perfectly smooth, tearing free scrolling. -
is needed unless you can accept scrolling speeds that are even
multiples of whatever refresh rate you may get. (Hardware and
configuration dependent.) There will always be some “wobbling” unless
you scroll the exact same number of pixels every frame at a constant
frame rate - so if the refresh rate doesn’t fit the desired speed,
you’ll have to deal with fractional pixels.
Have a look at “smoothscroll” here:
http://olofson.net/examples.html
//David Olofson - Programmer, Composer, Open Source Advocate
.- Audiality -----------------------------------------------.
| Free/Open Source audio engine for games and multimedia. |
| MIDI, modular synthesis, real time effects, scripting,… |
`-----------------------------------> http://audiality.org -’
— http://olofson.net — http://www.reologica.se —On Tuesday 21 December 2004 04.25, G B wrote: