Flywheel (Legacy)

Flywheel (Legacy)

40M Downloads

Possible fix for OptiFine shader optimization

seancrain opened this issue ยท 0 comments

commented

Describe the Bug

See sp614x/optifine#7347

The Flywheel mod currently disables its optimizations when shaders are enabled via OptiFine (although the optimizations are present with OptiFine if shaders aren't loaded.) This makes entering an area with several Create mod things in it extremely laggy when shaders are enabled, making the game practically unplayable.

I have stumbled across a mod that seems to fix the lag issue when coupled with Iris/Oculus:
https://www.curseforge.com/minecraft/mc-mods/iris-flywheel-compat

Apparently, it is able to autopatch shaders to allow them to not break Flywheel rendering, so optimizations can be enabled, but this mod is designed to work in tandem with Iris/Oculus and not OptiFine.

Could something like this be extended to support the Flywheel mod on OptiFine's side? It would be very useful to be able to actually use shaders whilst working with the Create mod without the game turning into a slideshow.

Reproduction Steps

  1. Install Oculus
  2. Install Iris Flywheel Compat
  3. Load Shaders
  4. Performance is significantly better than what exists when OptiFine is used instead

Expected Result

It would be great to see this mod's abilities implemented for OptiFine as well as for Iris/Oculus. I understand that OptiFine's closed-source nature makes it difficult to implement, which is why I'm directing the request to sp614x and Jozufozu directly instead of the developers of that mod.

Screenshots and Videos

No response

Crash Report or Log

No response

Operating System

Windows 11

What is your GPU?

RTX 3060

Mod Version

0.6.8.a

Minecraft Version

1.19.2

Loader Version

43.2.8

Other Mods

No response

Additional Context

No response