Skip to content

Commit

Permalink
Extend Minimize Latency Time, this basically removes the flash during…
Browse files Browse the repository at this point in the history
… conversion.
  • Loading branch information
AlgorithmX2 committed Jan 13, 2017
1 parent c8a4ece commit 73efa32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/java/mod/chiselsandbits/config/ModConfig.java
Expand Up @@ -162,6 +162,9 @@ public class ModConfig extends Configuration
@Configured( category = "Client Performance Settings" )
public boolean dynamicModelMinimizeLatancy;

@Configured( category = "Client Performance Settings" )
public long minimizeLatancyMaxTime;

@Configured( category = "Client Performance Settings" )
public int dynamicMaxConcurrentTessalators;

Expand Down Expand Up @@ -343,6 +346,7 @@ private void setDefaults()
dynamicModelFaceCount = 40;
dynamicModelRange = 128;
dynamicModelMinimizeLatancy = true;
minimizeLatancyMaxTime = 100;
dynamicMaxConcurrentTessalators = 32; // in low memory this acts as 2.
forceDynamicRenderer = false;
defaultToDynamicRenderer = false;
Expand Down
Expand Up @@ -530,7 +530,7 @@ private void renderLogic(
{
try
{
final Tessellator tess = tlrc.future.get( 2, TimeUnit.MILLISECONDS );
final Tessellator tess = tlrc.future.get( ChiselsAndBits.getConfig().minimizeLatancyMaxTime, TimeUnit.MILLISECONDS );
tlrc.future = null;
pendingTess.decrementAndGet();

Expand Down

0 comments on commit 73efa32

Please sign in to comment.