I noticed that when running any Allegro 5 program in linux, I can't get more than 60 FPS - even though al_clear_to_color(al_map_rgb(0,0,0)) only is called and nothing is drawn. How does that come?
BTW: I am using the Allegro 5 version that can be found in the Ubuntu PPAs
1. Are you using a timer? If so, what is it set to?
2. How are you measuring FPS?
3. Is v-sync enabled?
4. Can you post the code?
3. I don't know. At least I didn't enable it myself...
1., 2., and 4.:
ALLEGRO_VSYNC
Set to 1 to tell the driver to wait for vsync in al_flip_display, or to 2 to force vsync off. The default of 0 means that Allegro does not try to modify the vsync behavior so it may be on or off. Note that even in the case of 1 or 2 it is possible to override the vsync behavior in the graphics driver so you should not rely on it.
Thanks - didn't know that vsync was enabled...
You can also configure VSYNC on the driver level.
There's at least two ways, google it. I've posted before in these forums but I don't recall the command line arguments. nVidia has one set. And there's one universal set too. It's like VSYNC=1/2/3/4. With 4 maybe being adaptive vsync.