I'm making a game where I am controlling the movement of my objects. On my 4th gen device it runs at 60fps. On my 2nd gen device it is less stable and fluctuates between 40 and 60 fps.
How can you detect if you are on an older device? I'd like to cap the FPS to 30 and then I can adjust my custom movement in my game while keeping it at 60fps for newer devices that can cope with it.