Skip to content

About

OptiRefine is a mod that utilizes Mixin to patch Optifine, keeping optifine compatible with cleanroom and reducing its destructiveness.

Topics

Resources

Stars

26 stars

Watchers

2 watching

Forks

Repository files navigation

image OptiRefine — Runtime Alpha Test

Important

Status: Runtime Alpha Test. You can download and try it out, but it is not recommended for important worlds or servers; crashes or rendering issues may still occur. Issues are accepted — bug reports about crashes or errors caused by OptiRefine are welcome. Note: rendering anomalies while shaders are active are expected — don't worry, it is normal.


OptiRefine is a mod that utilizes Mixin to patch Optifine, keeping optifine compatible with cleanroom and reducing its destructiveness.

Let's enjoy the great optifine with the shaders. Go and get Mellow which i like

2026-08-09_03 36 39

Build

The project targets Java 25

./gradlew build

The build runs JVM bytecode and compatibility contracts. For local MCP development checks, run:

./gradlew verifyClientContracts

This requires OpenGL 4.3 and opens an isolated client in run/client-contracts. Results and captures are written to build/reports/client-contracts/. The verification mod is a separate test artifact under build/contract-tests/. OptiRefine uses this suite for its own development. Compatibility with other mods in MCP development environments is outside the supported runtime scope.

To verify the final SRG runtime Jar with official G5 and production Cleanroom, run:

./gradlew verifyRuntimeClientContracts

This uses run/runtime-client-contracts and writes reports to build/reports/runtime-client-contracts/. Build and release CI use this production suite for native-client validation. Both client suites require a graphical desktop and briefly focus the test window for shortcut checks.

Shader fixtures are editable sources in src/clientTest/resources/fixtures/shaderpacks/. Both client suites automatically build their ZIPs with prepareClientContractFixtures before launching. Edit a pack's shaders/ directory and rerun either suite to rebuild that pack. To prepare the fixtures without starting Minecraft, run:

./gradlew prepareClientContractFixtures

Generated ZIPs are staged under build/client-contract-fixtures/shaderpacks/.

The release workflow runs the build and the production SRG suite before creating a GitHub draft. It attaches the runtime Jar, sources Jar and SHA256SUMS.txt, and retains verification reports on failure. Version/tag mismatches are rejected; build metadata such as +build-alpha does not by itself mark a release as a prerelease.

Installation

  • Tested with Java 25, Cleanroom 0.5.17-alpha and OptiFine 1.12.2 HD U G5.
  • Deployment: put the official OptiFine jar and build/libs/optirefine-0.3.0-alpha.jar in the instance mods/ folder.
  • Other Cleanroom/OptiFine versions, including G6_pre1, require separate runtime verification.
  • Bug reports: attach logs/latest.log / crash-reports/crash-*.txt

Implementation notes, compatibility repairs and validation details are in Technical notes.

Modern backports include compute shaders, image load/store, sixteen logical color targets, prepare/shadowcomp stages, CEM animation and model features, and modern optifine/ resource rules. The OptiFineDoc compatibility table lists supported formats, rendering requirements and remaining differences.

Feats

Cleanroom removed Realms

Configuration Image Note
with Fugue image —
with OptiRefine image OptiRefine does not perform any special repairs, which may prove to be universal.

OptiFine Great Again

For a decade, OptiFine was the reason Minecraft didn't just run — it looked. Shaders, smooth lighting, zoom, dynamic skies: the game you remember is the game OptiFine drew. Then the ecosystem moved on. Cleanroom replaced the old Forge, and OptiFine's blunt bytecode surgery no longer fit in the house it used to own.

OptiRefine is the rebuild — not a patch on a patch, but a faithful re-implementation: mixins restore OptiFine's behavior on Cleanroom the way it should have been done from day one, with the destructive class transformer switched off for good.

The features are back. The compatibility is back. The look is back.

Make OptiFine great again.

Fixed Issue under Cleanroommc/Cleanroom

Issues
  • Cleanroom #600 — Crashes when used with OptiFine
  • Cleanroom #513 — Optifine make the game crash in full screen
  • Cleanroom #359 — Instant crash on nearly vanilla setup (0.3.4)
  • Fugue #123 — Optifine breaks "Remove Realms Button" patches when Fugue is installed
  • Fugue #113 — [Optifine] Fullscreen Mode doesn't move.

About

OptiRefine is a mod that utilizes Mixin to patch Optifine, keeping optifine compatible with cleanroom and reducing its destructiveness.

Topics

Resources

Stars

26 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages