Back to mods
OpticoresLib project artwork

Modrinth · Minecraft mod

OpticoresLib

Simple library mod for Opticores.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which OpticoresLib release matches 1.21.2?

Updated 12 days ago
Best match for your filters 1.2+1.21.x-fabric
Game version 1.21.11, 1.21.10, 1.21.9
Loader Fabric

OpticoresLib 1.2+1.21.x-fabric targets 1.21.11, 1.21.10, 1.21.9 with Fabric. It must be installed on the client. Do not install it on the dedicated server. 1 required mod needs a matching file.

Where it goes

Is OpticoresLib required on the client, server, or both?

It must be installed on the client. Do not install it on the dedicated server.

Client Required
Dedicated server Not supported
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked client-only.

What else does OpticoresLib 1.2+1.21.x-fabric need?

1.2+1.21.x-fabric on 1.21.2. Every mod below is checked against that same setup.

1 required mod needs a matching file

Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.

Fabric API Needed by OpticoresLib 1.2+1.21.x-fabric
required
No matching file

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add OpticoresLib without breaking your instance.

Built for OpticoresLib 1.2+1.21.x-fabric on 1.21.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.2+1.21.x-fabric. It targets 1.21.11, 1.21.10, 1.21.9 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.

  3. 03

    Put it on the correct side

    It must be installed on the client. Do not install it on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.2+1.21.x-fabric. It opens that exact file at the source.

About this project

What does OpticoresLib add?

kofi-plural-alt
buymeacoffee-plural
paypal-plural

OptiCoresLib

OptiCoresLib is a lightweight client-side library designed to provide reusable performance, GPU, rendering-infrastructure, compatibility, and diagnostic systems for OptiCores and potentially other compatible performance mods.

OptiCoresLib is not a replacement renderer and does not attempt to replace Minecraft's renderer, Sodium, or Iris. Instead, it provides the low-level infrastructure that performance mods can use to safely manage GPU resources, synchronization, performance measurements, hardware capabilities and rendering-environment detection.

What is OptiCoresLib for?

Modern Minecraft performance optimization can require systems that sit below individual optimization features. GPU buffers, resource lifetimes, synchronization, frame timing, hardware capabilities, and compatibility detection are useful across multiple rendering optimizations, but duplicating those systems inside every mod makes the architecture larger and harder to maintain.

OptiCoresLib separates this reusable infrastructure from the actual optimization logic.

The basic architecture is:

Minecraft / Fabric → OptiCoresLib → OptiCores

OptiCoresLib provides the infrastructure, while OptiCores decides how that infrastructure is used to optimize Minecraft.

Features

GPU Capability Detection

OptiCoresLib can detect available graphics capabilities and expose them through a consistent API.

This allows compatible mods to determine whether an optional GPU feature is actually supported instead of assuming that every system or graphics device provides the same capabilities.

Capability states can distinguish between features that are:

  • Supported
  • Active
  • Disabled
  • Unsupported
  • Failed
  • Using a fallback

This allows performance features to fail safely instead of causing the entire rendering system to fail.

GPU Buffer and Resource Management

OptiCoresLib provides infrastructure for managing GPU resources and buffers.

This includes systems for:

  • Resource allocation
  • Buffer reuse
  • Capacity tracking
  • Resource ownership
  • Resource retirement
  • Cleanup
  • Resource recreation after reloads
  • Debug validation

The goal is to reduce unnecessary allocation and make GPU resource lifetimes explicit and predictable.

Synchronization and GPU/CPU Coordination

GPU rendering introduces synchronization problems when the CPU and GPU access resources at different times.

OptiCoresLib provides synchronization infrastructure that can be used to:

  • Track frames
  • Track GPU resource lifetime
  • Monitor GPU completion
  • Manage fences
  • Avoid premature resource destruction
  • Detect GPU stalls
  • Fall back to safer synchronization behavior when necessary

The library is designed to avoid hiding expensive GPU waits inside normal operations.

Performance and Frame-Time Utilities

OptiCoresLib provides lightweight performance measurement infrastructure.

This can be used to track:

  • Frame time
  • CPU workload time
  • GPU timing when available
  • Rolling performance measurements
  • Workload budgets
  • Performance trends

OptiCores can use this information to make adaptive decisions, such as adjusting how much background work is performed during a frame.

Rendering Environment Detection

OptiCoresLib can identify relevant parts of the Minecraft rendering environment.

This includes detecting environments such as:

  • Vanilla
  • Sodium
  • Iris
  • Iris with shaders active

This allows OptiCores to adapt its behavior to the rendering environment instead of assuming that every Minecraft installation uses the same renderer.

Sodium and Iris are not required dependencies of OptiCoresLib.

Diagnostics and Fallbacks

Performance optimizations should not compromise stability.

OptiCoresLib therefore provides infrastructure for reporting why a feature is enabled, disabled, unsupported, or using a fallback.

This can make problems easier to diagnose by providing information such as:

  • Which capability was detected
  • Which optimization is active
  • Why an optimization was disabled
  • Why a fallback was activated
  • Whether a resource failed to initialize
  • Whether a synchronization problem was detected

Optional diagnostic information can be more detailed for debugging without requiring excessive logging during normal gameplay.

Designed for OptiCores

OptiCoresLib is primarily designed as infrastructure for OptiCores.

OptiCores can use the library for common systems while keeping its actual Minecraft-specific optimization algorithms inside the OptiCores mod.

This separation makes the architecture easier to maintain and allows individual systems to be developed, tested, and replaced independently.

Cick here to visit the Opticores official mod page.

Compatibility

OptiCoresLib is designed for:

  • Fabric
  • Minecraft 1.21.1–1.21.11 & 26.1-26.3
  • Fabric API

Sodium and Iris can be detected and integrated with when present, but they are not intended to be mandatory dependencies of the library.

Why a Separate Library?

A separate library prevents OptiCores from becoming one large monolithic mod where every optimization feature has to implement its own GPU management, synchronization, timing, compatibility detection, and diagnostics.

Instead:

OptiCoresLib handles the infrastructure.

OptiCores handles the optimization.

This keeps the responsibilities separated and makes future performance features easier to develop and maintain.

Important

OptiCoresLib is intended to remain small, focused, and infrastructure-oriented.

It is not intended to become another rendering framework. If a system requires detailed knowledge of Minecraft's chunk renderer or implements an OptiCores-specific optimization algorithm, that functionality belongs in OptiCores rather than OptiCoresLib

Project description from Modrinth.

Pick your setup

OpticoresLib by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

16 available setups

Showing the newest 12 of 16 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

OpticoresLib versions and loaders

3 of 6 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.