mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-22 05:02:18 +00:00
Add in a check to the splash screen. If the Display.update call takes
too long on average (over first 200 frames) we'll use a sleep based
timer to allow mods doing splash screen work some time on the
LWJGL global lock.
(cherry picked from commit 03d7eaa)
This commit is contained in:
1 parent
69b72201ac
commit
cec90d7f48
6 files changed
+52
-5
No files matched your search
@@ -757,4 +757,6 @@ public class FMLCommonHandler
|
||||
{
|
||||
return (CompoundDataFixer)sidedDelegate.getDataFixer();
|
||||
}
|
||||
|
||||
public boolean isDisplayVSyncForced() { return sidedDelegate.isDisplayVSyncForced(); }
|
||||
}
|
||||
@@ -80,4 +80,6 @@ public interface IFMLSidedHandler
|
||||
void fireSidedRegistryEvents();
|
||||
|
||||
CompoundDataFixer getDataFixer();
|
||||
|
||||
boolean isDisplayVSyncForced();
|
||||
}
|
||||
@@ -32,7 +32,6 @@ import com.google.common.base.Joiner;
|
||||
public class ProgressManager
|
||||
{
|
||||
private static final List<ProgressBar> bars = new CopyOnWriteArrayList<ProgressBar>();
|
||||
|
||||
/**
|
||||
* Not a fully fleshed out API, may change in future MC versions.
|
||||
* However feel free to use and suggest additions.
|
||||
@@ -57,7 +56,9 @@ public class ProgressManager
|
||||
return bar;
|
||||
}
|
||||
|
||||
|
||||
public static boolean isDisplayVSyncForced() {
|
||||
return FMLCommonHandler.instance().isDisplayVSyncForced();
|
||||
}
|
||||
/**
|
||||
* Not a fully fleshed out API, may change in future MC versions.
|
||||
* However feel free to use and suggest additions.
|
||||
|
||||
Reference in new issue
Block a user