Back to mods
mutcho's GPU load API project artwork

CurseForge · Minecraft mod

mutcho's GPU load API

This API makes it relatively easy to implement GPU offloading.

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

Quick answer

Which mutcho's GPU load API release should I use?

Updated 3 months ago
Latest stable file gpuloader_api-1.0.1.jar
Game version 1.20.1
Loader Forge

mutcho's GPU load API gpuloader_api-1.0.1.jar targets 1.20.1 with Forge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is mutcho's GPU load API required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

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

The source does not explicitly classify this release as client-only or server-only.

What else does mutcho's GPU load API gpuloader_api-1.0.1.jar need?

gpuloader_api-1.0.1.jar. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

1 listed on this file 1 pulled in by one of those mods
GPU load Optional for mutcho's GPU load API gpuloader_api-1.0.1.jar
optional
Matching file found Matched file: gpuloader-1.0.5.jar
mutcho's GPU load API Needed by GPU load
pulled in
Matching file found Matched file: gpuloader_api-1.0.1.jar

1 extra mod was pulled in by another dependency. Indented rows show who needs each one. We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add mutcho's GPU load API without breaking your instance.

Built for mutcho's GPU load API gpuloader_api-1.0.1.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use gpuloader_api-1.0.1.jar. It targets 1.20.1 with Forge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside gpuloader_api-1.0.1.jar. It opens that exact file at the source.

About this project

What does mutcho's GPU load API add?

Warning!

This MOD will not work on its own!
Its internal functionality is provided by an external MOD.
Currently, there is only one MOD that provides this internal functionality:
GPU load
https://www.curseforge.com/minecraft/mc-mods/gpu-load

Description

By using this API, you can significantly reduce the tedious steps required to handle the GPU.

The main syntax and usage of this API can be broken down into the following three steps:

  1. Accessing and Verifying the API First, check whether the API is available and whether your PC’s hardware supports its features.
    java
// Get an instance of the API
IGPUComputeAPI api = GPULoaderAPI.getInstance();

// 1. Check if the main GPU Load component (MOD) is installed
if (GPULoaderAPI.isAvailable()) {
    
    // 2. Check if the hardware supports Compute Shaders
    if (api.isSupported()) {
        // Start processing here
    }
}
  1. Register the shader Register the computation you want to execute (GLSL source code) with the API.
    java
// Create a unique identifier (ID)
ResourceLocation myShaderId = new ResourceLocation(“yourmod”, “my_compute_shader”);

// GLSL source code (string)
String source = "#version 430 core... GLSL source code ...";

// Register (compile) the shader with the API
api.registerShader(myShaderId, source);
  1. Execute the Shader (Dispatch) Execute the registered shader on the GPU. You must call this from a render thread.
    java
// Execute the shader with the specified number of groups
// groupsX, Y, Z are the number of parallel thread groups
api.dispatchShader(myShaderId, groupsX, groupsY, groupsZ);

How to Use (Development Environment) To use this API in a mod under development, add the gpu-load-API JAR file to your project's dependencies.
Also, since this is an asynchronous process, care must be taken when retrieving the results.

Project description from CurseForge.

Pick your setup

mutcho's GPU load API by Minecraft version and loader

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

1 available setups

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

Recent files

mutcho's GPU load API versions and loaders

2 of 2 releases match

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