Skip to content

ExodusCoder9/GLForcer

Repository files navigation

GLForcer

GLForcer is an experimental rendering utility for Fabric designed to override default graphics context hints. It was developed to bypass standard version limitations and force the initialization of an OpenGL 4.6 Core Profile.

Technical Overview

The utility utilizes Mixin to inject context hints at the hardware abstraction layer. By intercepting the window creation process, GLForcer ensures the GPU driver allocates a high-version context required for certain features of mainstream optimization mods such as Sodium Direct State Access ( DSA ).

Automatically probes hardware for 4.6 support; defaults to 3.3 Core Profile if the high-version request is rejected by the driver.

Features

  • Context Hijacking: Overwrites major/minor OpenGL version hints at the platform level.
  • Profile Enforcement: Mandates a Core Profile initialization to prevent legacy hardware fallback.
  • Process Management: Includes a shutdown hook protocol to ensure the JVM process terminates immediately upon window closure, preventing hanging threads.

Requirements

  • Environment: Minecraft 26.1+
  • Loader: Fabric Loader
  • Hardware: GPU with native OpenGL 4.6 support (e.g., Intel Iris Xe, NVIDIA RTX, AMD Radeon RX)

Installation

Place the compiled .jar in your /mods folder. This utility is experimental; it is recommended for use in development environments or specific hardware testing scenarios.

Disclaimer

This is an experimental release. Forcing hardware contexts can lead to driver instability or crashes if the underlying hardware does not natively support the requested specifications. Use with caution.

About

An experimental Fabric utility that aggressively hijacks GLFW window creation to force an OpenGL 4.6 Core Profile or whichever more modern version which is supported other than OpenGL 3.3 offering fallback to 3.3 incase of no support , bypassing legacy rendering constraints for maximum engine performance.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages