Probably a ball with a fine black and white grid pattern and a fast imaging sensor could be used to achieve this. So long as it's sending updates at around 100hz, should be pretty performant.
Edit: Could also probably be something that's alternating bright and dark in IR so the ball doesn't look weird.