self calibrating (antialiasing) RenderPeer

For the game I’m currently working on, when testing on different computers, I can see that the framerate for an AA rendering varies from 20 fps to 60fps (vsync limit) with 4 samples AA, and logically improves when reducing the samples.

What’s the recommended way to select the best AA mode for a given computer ?

Currently I start without AA, and let the user select, or increase AA with an options menu, but I’d rather start with the optimal AA settings for a given computer.

If it doesn’t exist, we could create a default self calibrating app (invoked once during installation, many basic objects rendered at a given window size, with self adjusting AA to remain above the monitor frame rate).

any ideas or implementations are welcome.

Lilian

I think this would be very simple to implement (although I don’t know how to active anti-aliasing).
But you just have to begin with the simplest aliasing possible, and test the FPS. If it’s above the 60FPS limit, then you test one AA level above, and that until you fall under 60FPS.
Maybe an in-game approach may be better suited. It depends on your gfx : if you have environments like in FarCry, and want your game to run with a GeForce 2MX, then maybe the AA should be deactivated :slight_smile: :slight_smile:

AA is activated on canvas creation, and changing it during the game is blocking the display until your new render peer is ready. Not really user friendly except if it’s triggered directly by the user.

Hence why I asked for an install-time approach, something not really game specific (could even be shared between games if stored in the java user preferences). This could then be added into the Xith-tk.

Lilian

Ah ok. So yes with the method I described in the install-time it should work. Maybe during the test we could display Xith logo, or something friendly like that, so the user don’t suspect what is going on…

Can anyone show me how you turn on Anti-Aliasing - and how to increase it or decrease it.

please =)

Rmdire