mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-25 06:24:43 +00:00
Some things to note: Netty is screwy so currently can't join single player. @cpw Crafting has been MAJORY reworked. The current GameRegistry functions are nooped, this is IN THE WORKS. Just need to move the recipe list to a full class registry, and then re implement the in-code recipe registration. Also, it IS advised that modders move to JSON, because ideally we'll see a S->C recipe syncing system in 1.13 which would allow servers to have custom recipes. OreDictionary currently 1/2 works, need to write a better algorithm for replacing ingredients. Please be patient Rendering: A lot of functions got a new float parameter, this is similar to partial ticks, needs more research
20 lines
795 B
Diff
20 lines
795 B
Diff
--- ../src-base/minecraft/net/minecraft/client/renderer/chunk/ChunkRenderDispatcher.java
|
|
+++ ../src-work/minecraft/net/minecraft/client/renderer/chunk/ChunkRenderDispatcher.java
|
|
@@ -44,9 +44,15 @@
|
|
|
|
public ChunkRenderDispatcher()
|
|
{
|
|
+ this(-1);
|
|
+ }
|
|
+
|
|
+ public ChunkRenderDispatcher(int countRenderBuilders)
|
|
+ {
|
|
int i = Math.max(1, (int)((double)Runtime.getRuntime().maxMemory() * 0.3D) / 10485760);
|
|
int j = Math.max(1, MathHelper.func_76125_a(Runtime.getRuntime().availableProcessors(), 1, i / 5));
|
|
- this.field_188249_c = MathHelper.func_76125_a(j * 10, 1, i);
|
|
+ if(countRenderBuilders < 0) countRenderBuilders = MathHelper.func_76125_a(j * 10, 1, i);
|
|
+ this.field_188249_c = countRenderBuilders;
|
|
|
|
if (j > 1)
|
|
{
|