Run Sonic Heroes on modern graphics

Decided to revisit a classic from my childhood - Sonic Heroes 2003-2004. It runs decently on my onboard graphics Intel HD 5500, but there are times where the FPS drops and these occasions are quite often.
I have tried numerous times to force Nvidia graphics but to no avail. I have tried to run the game in win7 or win XP compatibility mode. Even disabled the Intel graphics processor but that only led to the game using Microsoft Default Display Driver or whatever.
I read somewhere that newer Nvidia graphics cards have compatibility issues with games that run Direct X 9.0 or lower, but im not sure how to debug this.
Does anyone have any idea how to get Nvidia GTX 940 M to run instead of the onboard graphics for Sonic Heroes?
Best Answer
You can change the gpu your game uses in the nvidia control panel in the "Manage 3D settings" menu like this:
If your game doesn't show up in the dropdown menu, add the .exe
file with the Add
button.
Pictures about "Run Sonic Heroes on modern graphics"



Sonic Heroes: HD Remaster! (Upscaled Textures)
More answers regarding run Sonic Heroes on modern graphics
Answer 2
You're actually right about Nvidia having issues with games running DirectX lower than version 9.0, the game will not start from the discrete GPU no matter what. The fix is simple however, just use d3d8to9 to bump Direct3D 8 to 9.0, then change Nvidia Control Panel or Windows settings for the game accordingly.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Pixabay, Pixabay, Ketut Subiyanto, RF._.studio