mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-21 07:46:55 +00:00
Actually just after 1 region is generated switch
This commit is contained in:
1 parent
b64c821ef4
commit
9a945837cd
1 file changed
+1
-1
@@ -111,7 +111,7 @@ public class IrisPregenerator {
|
||||
}
|
||||
|
||||
private long computeETA() {
|
||||
return (long) ((generated.get() > totalChunks.get() >> 3) ? // Generated chunks exceed 1/8th of total?
|
||||
return (long) (totalChunks.get() > 1024 ? // Generated chunks exceed 1/8th of total?
|
||||
// If yes, use smooth function (which gets more accurate over time since its less sensitive to outliers)
|
||||
((totalChunks.get() - generated.get()) * ((double) (M.ms() - startTime.get()) / (double) generated.get())) :
|
||||
// If no, use quick function (which is less accurate over time but responds better to the initial delay)
|
||||
|
||||
Reference in new issue
Block a user