Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
MCRcortex committed Nov 2, 2023
1 parent 191bc20 commit 2b145a7
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ loom {

processResources {
inputs.property "version", project.version

archivesBaseName = "nvidium"
filesMatching("fabric.mod.json") {
expand "version": project.version
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ loader_version=0.14.22
fabric_version=0.88.5+1.20.2

# Mod Properties
mod_version=0.2.2-beta
mod_version=0.2.3-beta
maven_group=me.cortex
archives_base_name=nvidium
# Dependencies
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/me/cortex/nvidium/RenderPipeline.java
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,6 @@ public void renderFrame(Viewport frustum, ChunkRenderMatrices crm, double px, do
sectionManager.commitChanges();//Commit all uploads done to the terrain and meta data
uploadStream.commit();

TickableManager.TickAll();

if ((err = glGetError()) != 0) {
throw new IllegalStateException("GLERROR: "+err);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package me.cortex.nvidium.mixin.minecraft;

import me.cortex.nvidium.util.TickableManager;
import net.minecraft.client.MinecraftClient;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(MinecraftClient.class)
public class MixinMinecraftClient {
@Inject(method = "render", at = @At("TAIL"))
private void tickUploadThread(boolean tick, CallbackInfo ci) {
TickableManager.TickAll();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private static void packageSectionGeometry(int formatSize, NativeBuffer output,

float dist = dx*dx + dy*dy + dz*dz;

int sortDistance = 0;//(int) (dist*(1<<12));
int sortDistance = (int) (dist*(1<<12));

//We pack the sorting data
long packedSortingData = (((long)sortDistance)<<32)|((((long) j>>2)<<3)|i);
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/nvidium.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"minecraft.LightMapAccessor",
"minecraft.MixinBackgroundRenderer",
"minecraft.MixinGameRenderer",
"minecraft.MixinMinecraftClient",
"minecraft.MixinWindow",
"minecraft.MixinWorldRenderer",
"sodium.MixinChunkBuilder",
Expand Down

0 comments on commit 2b145a7

Please sign in to comment.