Using my own code, and another persons code, I’m getting 60 FPS
max for both programs when running in hardwaremode. Even though
mine draws and his doesn’t, and mines a higher resolution, I
still get the same FPS.
Does it max out on Win32 in hardwaremode in fullscreen mode? On
testing I actually got better FPS on software windowed mode than
Hardware mode. (70fps software windowed, 60fps hardware
fullscreen)
Or am I missing something really simple? From searching it looks
like it may be a cause of vsyncing,
Yep, that’s most probably it.
but it’s supposed to be a
good thing.
It is. An insane, unsynchronized frame rate is not. Vsync should be
used whenever possible, except when benchmarking.
Will an openGL backend to SDL give me better FPS?
No, not if your OpenGL driver has vsync enabled by default.
Do I need a
better FPS?
Well, yes (IMHO) and no. You cannot and should not exceed the refresh
rate of your monitor (it just burns CPU and GPU cycles and causes
tearing) - but I’d suggest configuring your monitor for a refresh
rate of at least 70 Hz, to reduce flickering. (If you can see any,
that is. Some people are more sensitive than others.)
Or should I just aim to hit over 30?
Depends on what kind of game you’re working on. Some games are
perfectly playable at 10-20 fps, whereas others need at least 30 fps
to be seriously playable at all. Increasing the frame rate to well
over 50 fps can often improve the feel and responsiveness. 2D action
games are usually the most sensitive ones (anyting below the monitor
refresh rate results in constant ghosting in scrollers, among other
things), though there is (to me at least) a distinct difference
between ~30 fps and 50+ fps in first person shooters as well.
For simulators and other applications that have to be very “direct” in
their responses to user input, you also have to consider latency,
especially if you’re using triple or better buffering. (Not supported
by SDL, unless the driver enforces it.) A higher frame rate reduces
latency without tearing or reduced “hickup resistance.”
//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 Sunday 11 July 2004 15.48, jake b wrote: