question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PCs with Nvidia+Intel cards use the Intel one with Fabric, but Nvidia with vanilla, resulting in a perceived massive framerate drop caused by Fabric

See original GitHub issue

Not sure if that can even be solved by Fabric alone, but it should at least be made known/public.

When Vanilla MC starts the game, it passes net.minecraft.client.main.Main as the main class name to java.exe. When Fabric starts the game, it passes net.fabricmc.loader.launch.knot.KnotClient.

Unfortunately, the Nvidia control panel has a long list of games that should use the external GPU instead of the internal one. This list includes net.minecraft.client.main.main:

https://media.discordapp.net/attachments/507982463449169932/732953107935395931/unknown.png?width=1183&height=751

Which means, after installing Fabric, Nvidia won’t recognize the fabric-started java.exe as one of the programs that should use the Nvidia card, falling back to the Intel one, resulting in a big frame rate drop.

More info in today’s Discord discussion here: https://discordapp.com/channels/507304429255393322/507982463449169932/732948809650274415

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:24 (9 by maintainers)

github_iconTop GitHub Comments

8reactions
gblcommented, Jul 15, 2020

I don’t know as I’m not NVidia, but adding -DFabricMakeNVidiaHappy:net.minecraft.client.main.Main or -DFabricMakeNVidiaHappy=net.minecraft.client.main.Main (first has a : and second a = ) doesn’t help.

-DFabricMakeNVidiaHappy=" net.minecraft.client.main.Main " does, however. Note the blanks between the "s and the “class name”.

2reactions
modmuss50commented, Jun 14, 2021

Ok that’s good to hear, and sounds like something I can test with. I will look into adding this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Latest drivers causing short drops o | NVIDIA GeForce Forums
Latest drivers causing short drops of Memory Clocks and in-game FPS.
Read more >
Low FPS on decent specs - Java Edition Support
I tried both vanilla and with mods, installing fabric+lithium+sodium+phosphor only gave me an extra 20-30 fps compared to vanilla.
Read more >
Sudden drop in FPS - Debugging, Optimization, & Profiling
My game is running at 40-45 fps . Sometimes the game runs fine with an even frame rate. But increasingly at any given...
Read more >
What can be a reason behind a sudden FPS drop in games?
(Get a better GPU); A lot of extra action going on that your CPU isn't capable of handling. (Get a better CPU); A ......
Read more >
Intel Is Ugly: So Are Nvidia And AMD (NASDAQ:INTC)
Despite the massive ongoing semiconductor-dependent digital revolution, the market has been brutal to chip stocks this year, and it can ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found