I know Sammy and Ploing 2 had a similar feature... it would change the resolution at startup according to your hardware.

Maybe asking Surricate Software how they did it?