When i make a game in direct x it runs smooth on windows 98, then i play it on windows XP and the graphics are messed up, i must change to 16 bit to play but this costs to much fps.

Any help is greatly appreciated.