OpticoresLib
Simple library mod for Opticores.
No ratings yet
Be the first to rate it.
Community listing page
Community listing page, reviews may not be monitored by the author.
Community voices
Reviews
Log in to review this mod
Reviews are written by ModDex members. Log in and you'll come right back to the review form.
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
Runs entirely on the client. Works on vanilla servers.
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
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
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
Stats
- Downloads
- <1,000
- Used in
- 0 modpacks
- Followers
- 0
- In stacks
- 0
- Created
- Last synced
-
Nov 24, 2026 2:45 PM UTC
New file updates sync automatically.
When ModDex last fully re-synced this project from CurseForge or Modrinth. A new file release triggers a resync usually within minutes, and every project is also re-synced on a schedule. Edits that don't ship a file, such as a new description or screenshots, are checked every few hours and can appear before this date changes.
How syncing works
External Links
Stats
- Downloads
- <1,000
- Used in
- 0 modpacks
- Followers
- 0
- In stacks
- 0
- Created
- Last synced
-
Nov 24, 2026 2:45 PM UTC
New file updates sync automatically.
When ModDex last fully re-synced this project from CurseForge or Modrinth. A new file release triggers a resync usually within minutes, and every project is also re-synced on a schedule. Edits that don't ship a file, such as a new description or screenshots, are checked every few hours and can appear before this date changes.
How syncing works


