Add ability to remove item groupings

Item groups prevent batch rendering from being effective, thereby reducing performance.
This commit is contained in:
nea
2023-09-06 02:35:06 +02:00
parent d29f886e25
commit 1229227051
4 changed files with 32 additions and 16 deletions

View File

@@ -13,11 +13,7 @@ import io.github.moulberry.repo.NEURepositoryException
import io.github.moulberry.repo.data.NEUItem
import io.github.moulberry.repo.data.NEURecipe
import io.github.moulberry.repo.data.Rarity
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents
import kotlinx.coroutines.launch
import net.minecraft.client.MinecraftClient
import net.minecraft.network.packet.s2c.play.SynchronizeRecipesS2CPacket
import net.minecraft.text.Text
import moe.nea.firmament.Firmament
import moe.nea.firmament.Firmament.logger
import moe.nea.firmament.gui.config.ManagedConfig
@@ -25,6 +21,10 @@ import moe.nea.firmament.hud.ProgressBar
import moe.nea.firmament.rei.PetData
import moe.nea.firmament.util.MinecraftDispatcher
import moe.nea.firmament.util.SkyblockId
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents
import net.minecraft.client.MinecraftClient
import net.minecraft.network.packet.s2c.play.SynchronizeRecipesS2CPacket
import net.minecraft.text.Text
object RepoManager {
object Config : ManagedConfig("repo") {
@@ -38,6 +38,16 @@ object RepoManager {
branch = "prerelease"
save()
}
val disableItemGroups by toggle("disable-item-groups") { false }
val reload by button("reload") {
save()
RepoManager.reload()
}
val redownload by button("redownload") {
save()
RepoManager.launchAsyncUpdate(true)
}
}
val currentDownloadedSha by RepoDownloadManager::latestSavedVersionHash