I come here with the hope to find a solution to my problem I got for a year now. (And it got worse and worse).
I got a Dell XPS 15 9560 Laptop which has high spec. (details at the end of the post). Since the first time I tried to play Minecraft on it, I got severe lag issues that seems to be related to an "optimus"-like (core or not) functionality. I'll explains in details the problem and the lot of things I've already tried.
I beg you to read the entire list of attempts before suggesting me one, because it has great chances to be solution that I've already tried.
The problem :
When I start the game, sometimes the problem occurs directly, sometimes it occurs after a little time.
On Minecraft (so javaw.exe), my Nvidia GTX1050 Card seems to delegate the render tasks to my chipsets or Intel(R) HD Graphics 360 Card.
Its decision come over all configurations I've set in the Nvidia configurations panel, whatever I told him to do when starting the game, even in I totally disable the Intel Graphic Card in the peripherals devices manager.
We can see the problems occuring by watching at the Tasks Manager > Performances tab.
In first moments, when Minecraft runs on the Nvidia Cards (GPU1) we can see that my game reach 120 to 200 FPS easily
See attachment file "nv_bug_2" below.
After one or two minutes, the game decide to delegate the task to another GPU which is named "GPU0" in the Tasks Manager. As we can see on the
attachment file "nv_bug_1"
If you take a look at attachment file "nv_bug_3", you'll see some jumps on the graphics that corresponds to the moment when FPS fall down in game : at this moment, the GPU0 rise 100% of use, whereas the GPU1 fall to 0/1% of use.
In those screenshots I use to illustrate my issue, I got a lot of chance, because the use of Nvidia Card was enough stable as we can see on graphics.
It seemed to be due to the fact I was not moving in game. But in reality, GPU0 is used 95% of the time at 100% of its use (so I can only enjoy 5% of my times at 100 FPS on Minecraft, otherwise I "play" with 20/40 FPS, which is awful).
Here's a list of solutions I tried :
- I tried first to run the game with "Execute with graphic processor" > "Nvidia high-performances processor" like anybody should do, but the problem still occurs.
- So I configured the task in the "Nvidia Control panel" > "3D parameters" in order to launch Minecraft only with the Nvidia CG.
- I tried to disable the threaded optimization.
- I tried to add every programs which were related to the game (like javaw.exe, javacpl.exe...) in order to make them run with the Nvidia GPU by default.
See attachment file "nv_bug_4" below
- I tried to set Nvidia GPU as global default prefered processor.
- I tried to set PhysX processor on GTX 1050 instead of autoselection, but the result seemed worst.
- I tried to uninstall all Intel drivers, and reinstall them manually one by one.
- After that I tried to update the Nvidia driver from the GeForce Experience program, checking "Clean existing installation" to be sure that no previous driver would create a conflit with the new one.
- Nothing of that was working, so I tried to force my computer by myself: I turn off the Intel Graphic Card from the peripheral devices, so my computer had no choice but running the app with the Nvidia GPU. It worked a few moments (at lower FPS than when both GPU are connected and when Nvidia don't delegate the task yet to another card), but after a short instant, the Nvidia Card dropped task and I got lower FPS than ever before (1 to 5 FPS)... as it seemed to hand the baton to the graphics chipsets.
- I also tried to launch a game directly from the GeForce Experience interface (presuming the tool will force the app to run with Nvidia Card), but it didn't change anything.
- I tried to find in the BIOS of my computer if it was a parameter which should be responsible of this automatic switch, but I didn't find anything relative to graphic optimization.
- My laptop has a 4K screen, so I tried on a Full HD Dell monitor connected with a Dell C Dock (so the render where four time smaller), but it didn't resolve the problem.
Hi, I already tried that yesterday, I forgot to mention it in my thread. There's three new things I tried :
- I downloaded the last Java 8 and tried with my own version of Java localized in 'C:\Program Files\Java\jre1.8.0_191\bin\javaw.exe' by assigning from my Minecraft launcher > launcher options > (chosen version) > check "Executable Java File" > and set path. I configured this new javaw.exe in the Nvidia control panel in order to start it with the Nvidia processor and use GTX1050 for the OpenGL render.
- I deleted Minecraft folder and .minecraft folder and reinstall the whole game : I retried with the embedded java version and my own java version again.
- On Nvidia forums, they said me that this Optimus problem should appears when we veer away from the manufacturer's certified drivers package, so I uninstalled my current drivers (which were the the last drivers available on each plateform Intel and Nvidia), and installed the recommended manufacturers drivers in the good order.
Those three solutions didn't work at all. When I started the game for the first time after installing those former drivers, the game reached 200/250 FPS. One more time after 5 minutes of game, it switched to GPU0 and I never reached more than 15/20 FPS. I tried to stay on the game for 1 hour, it never use the GPU1 again.