I am at a bit of a loss. I can run Forge41.0.45 with Minecraft 1.19 and it works just fine. It sees my Nvidea 3060 card and i get a great frame rate. Just there is no compatible version of Optifine so I can play with shaders.
If I load Forge40.1.x then minecraft seems to default to the intel graphics on my i7 chip and its horrible. If I run vanilla minecraft 1.18.2 it sees the nvidea card. it is as if Forge 40.1.x is doing something that is fooling with the way the laptop sees video card settings or is using a totally custom different java runtime that just doesn't want to see the nvidea card. What am I doing wrong?