你正在使用大型整合包吗?在使用它时,你是否也遇到了启动时间异常漫长的问题?
那么我的模组“Lightspeed”可能正是你所需要的。
请求:如果你发现任何问题,请提交报告(在
GitHub 上)——没有任何改进值得以崩溃或不兼容为代价。
?简介
Lightspeed 是一款启动优化模组,旨在显著减少在使用(重型)整合包时 Minecraft 的启动时间。
目前,Lightspeed 可将 Minecraft 的启动时间缩短约 48% - 62%。
本模组仍处于开发中,所有优化功能将逐步添加,以确保稳定且日益完善的体验。
为了让玩家追踪每次更新带来的启动时间改善情况,Lightspeed 会在标题界面显示启动时间(请参阅图片标签页)。
你可以在 CurseForge 模组页面 留下你的想法
? 动机
我自己也在一个包含 273 个模组的大型整合包中使用 Minecraft 1.18.2。尽管我拥有不错的电脑配置,但 Minecraft 的启动时间却长得令人难以忍受。
一台最新的电脑需要7 分钟,2015 年的配置大约需要 15 分钟,而 2018 年的笔记本电脑甚至需要超过 20 分钟才能启动 Minecraft。
这确实不太好。
? 路线图
目前,Lightspeed 可将 Minecraft 的启动时间缩短约 48% - 62%。未来的每次更新都旨在至少再提升 10% 的性能。
我的最终目标是让 Lightspeed 使你的启动速度比不使用该模组时快 3 到 4 倍。
这意味着未经优化的 7 分钟启动时间应缩短至 2 分钟,15 分钟缩短至 4 分钟,以此类推。
如果你喜欢这个模组,我很高兴你能发布一条评论,说明你原始的启动时间以及使用 Lightspeed 后达到的时间。
?准则(指导原则)
为了确保我的目标(为所有人改善加载时间)得以实现,Lightspeed 遵循或应遵循以下一些指导原则:
- 效率优于多线程:并非每个人都有拥有 12、16 甚至 20 核心的游戏 CPU。因此,Lightspeed 依赖缓存和其他措施,尽可能减少操作次数。
- 最小侵入性:尽管 Lightspeed 会修改现有的源代码,但它并非对源代码进行彻底的重组或重构。每项调整都经过极其谨慎的处理。
- (理想情况下)无兼容性冲突:我的目标是 Lightspeed 能够并且将继续与市面上几乎所有模组兼容——如果你遇到任何崩溃、异常行为或其他问题,请在 GitHub 上创建 Issue。
- 可配置性:我意识到并非所有模组都能与 Lightspeed 兼容。但你仍然可以通过在配置文件中禁用有问题的优化功能来继续使用 Lightspeed。
⚗️工作原理
Minecraft 和 Forge 使用了一些低效或冗余的方式来加载、持有和处理数据。我发现了一些这样的问题。
我为每种低效情况实现了一种替代算法,然后再次观察启动过程,以验证更改是否带来了预期的改进。
Lightspeed 的优化主要集中在:
- 减少文件系统操作(尤其是读取访问)
- 并行化处理合适的进程
- 缓存计算结果和数据
- 改进数据结构
?️ 测试环境 及兼容性
下一节列出了我在整合包中使用的所有模组。这意味着所有这些模组都应与 Lightspeed 兼容。
模组列表
AbsentByDesign AdditionalAdditions AdditionalLanterns AdditionalLights Alcocraft Alexsmobs AmbientAdditions AmbientSounds Appetite AppleSkin AppollosAdditionalStructures Aquaculture Architects Architectury Artifacts AutoRegLib AwesomeDungeonEnd AwesomeDungeonNether AwesomeDungeonOcean Awesomedungeon BadMobs Balm Beautify Bettas BetterAdvancements BetterAnimalsPlus BetterBiomeBlend BetterFpsDist BetterModsButton BeyondEarth BiomesO'Plenty BlockCarpentry BlueSkies Bookshelf BotanyPots BottleYourXp BottledAir Breezy BuildersAddition BuildersDelight Camera Canary Chipped Chiseled Citadel ClothConfig CofhCore ColdsStructures Collective CombatRoll Configured ConnectedTexturesMod CookingForBlockheads CornDelight Create CreativeCore CreaturesAndBeasts CrittersAndCompanions Croptopia CulturalDelights Curios DecorationDelightMod DecorativeBlocks DeeperInTheCaves Delightful Diet DimDungeons DisplayCase DoggyTalents DomesticationInnovation DomumOrnamentum DrawerFps Duckies DungeonCrawl DungeonsArise DynamicSurroundings Ecologics EntityCollisionFpsFix EntityCulling ExlineFurniture ExoticBirds Expandability ExpandedCaves ExtendedLights FallingLeaves FantasyFurniture FarmersDelight FastLeafDecay FastWorkbench FeatureNbtDeadlockBeGone FerriteCore FinsAndTails FixMySpawnR Floralis Flowery FloweryCore Flywheel FoodEnhancements ForgottenBiomes FramedBlocks Furnish Geckolib Gemsnjewels GoProne Goodall GrapplingHookMod Gravestone GuardVillagers GuiClock HappyHolidays Hedgehog HopoBetterUnderwaterRuins Hyle ImmersiveEngineering ImmversiveFX InControl Incendium IndustrialForegoing InfinityButtons IntegratedStructuresAndDungeons Jade Jeed Jei JeiIntegration JourneyMap Kiwi KnightQuest Koremods KotlinForForge Krypton LazyDfu LibraryFerret LightMeals Lightspeed MacawsBridges MacawsBridgesBOP MacawsDoors MacawsFences MacawsFencesBOP MacawsFurniture MacawsLights MacawsPaths MacawsRoofs MacawsRoofsBOP MacawsTrapdoors MacawsWindows Mantle ManyIdeasCore ManyIdeasDoors Mapperbase McjtyLib MmLib ModernXl MonkeMadness MoogsVoyagerStructures MoreBeautifulPlates MoreStorageDrawers MoreVillagers MouseTweaks MrCrayfish'sFurniture Multibeds NamelessTrinkets Naturalist NaturesCompass Nekoration Nightlights NockEnoughArrows NotJustSandwich Notes Observable ObsidianBoat OhTheBiomesYou'llGo Optifine OutOfSight Pam'sHarvestcraftCrops Pam'sHarvestcraftFoodCore Pam'sHarvestcraftFoodExtended Pam'sHarvestcraftTrees Paraglider Patchouli Phireworks PickUpNotifier Placebo PlayerAnimator PresenceFootsteps PrettyBeaches PrimalReservation ProjectVibrantJourneys PuzzlesLib Pyrotastic Quark QuickPlant Reblured Rechiseled RecipesLibrary RefinedStorage Relics Reliquary RepurposedStructures RexsAdditionalStructures RfToolsBase RoughTweaks Searchlight SecretRooms SecurityCraft Selene ShetiphianCore Shrines Signpost SimpleDivingGear SimplyHouses SimplyLight Sit SmarterFarmers SmoothChunk SnowRealMagic SnowUnderTrees SnowySpirit SophisticatedBackpacks SophisticatedCore SophisticatedStorage SoundPhysics SpiceOfLife SpyglassImprovements Starlight StorageDrawers Structory StructureGel StylishEffects SuperMartijn642ConfigLib SuperMartijn642CoreLib Supplementaries SushiGoCrafting SushiMod TerraBlender Terralith TheAbyss2 TheVeggieWay ThermalCultivation ThermalExpansion ThermalFoundation ThermalInnovation ThermalIntegration ThermalLocomotion Titanium ToughAsNails TownsAndTowers Trapcraft UTeamCore UnionLib Unstructured UntamedWilds UnusualDrill UnusualEnd UsefulBackpacks VanillaDegus Villagernames Waddles Waystones WildBackport Wilds XercaMod Xnet XtraArrows YungsApi YungsBetterDesertTemples YungsBetterDungeons YungsBetterMineshafts YungsBetterStrongholds YungsBetterWitchHuts mOREs
❗重要说明
- 仅当您使用多个或大量模组时,这些优化才会显现效果。
- 部分未来的优化可能会直接调整其他模组的行为。如果您不希望 Lightspeed 直接改进其他模组的行为,您可以将其禁用——但保持启用状态会获得更好的启动速度。
- 由于即使经过优化,加载模组所需的处理工作仍多于不使用模组的情况,因此可能无法将启动时间降低到接近原版水平(约 40 秒)。但我会在未来尽力修正这一说法。
?常见问题 (FAQ)
问题
问:我可以在我的整合包中使用 Lightspeed 吗?
答:可以——请随意将 Lightspeed 包含在您的整合包中。请记住注明出处,并不要声称 Lightspeed 是您的原创作品。
问:支持哪些 Minecraft 版本?
答:Lightspeed 目前适用于 1.18.2。其他版本预计很快推出——如有需要,欢迎请求特定版本。
问:是否已知与其他模组存在不兼容问题?
答:目前尚无——大多数模组应与 Lightspeed 兼容。如果您在使用 Lightspeed 时遇到任何问题,请在 GitHub 上提交 Issue。
问:我仍然面临较高的启动时间,这是为什么?
答:此模组仍在开发中——请参阅“路线图”部分以获取更多信息。也许您使用的某些模组包含低效的算法。欢迎带着您的模组列表在 GitHub 上提交 Issue,我将尝试进行性能分析并加以改进。另一个可能的原因是您的最大内存分配(通过 -Xmx)——如果该值过低,Minecraft 会更频繁地尝试释放内存,从而损害启动速度。
? 链接
Are you using a large modpack? Do you also experience insanely high launch times when using it?
Then my mod "Lightspeed" might be just what you are looking for.
Request: If you notice any issues please report them (on
GitHub) - no improvement is worth having any crashes or incompatibility.
?About
Lightspeed is a launch optimization mod, that aims to significantly reduce minecrafts launch time when using (heavy) modpacks.
At the moment Lightspeed decreases minecraft's launch time by approx. 48% - 62%
This mod is still work in progress and all optimizations will be added bit by bit to ensure a stable and slowy getting better experience.
To let you track the launch time improvement for every update Lightspeed displays the launch time at the title screen (look at the Images tab).
You can leave your thoughts on the CurseForge mod page
? Motivation
I'm using a large modpack myself that includes 273 mods (Minecraft 1.18.2). Minecraft takes half an eternity to start - even though I have a solid pc setup.
An up-to-date computer takes 7 minutes, a setup of 2015 approx. 15 min and a notebook of 2018 even needs more than 20 min to launch minecraft.
That's not really good.
? Roadmap
At the moment Lightspeed decreases minecraft's launch time by approx. 48% - 62%. Every future update aims to improve it at least by 10%.
My final goal is that Lightspeed make your launch 3 to 4 times faster than without using it.
Meaning an unoptimized launch of 7 minutes should be reduced to 2 minutes, 15 minutes to 4 minutes and so on.
If you like this mod, I would be happy if you post a comment with your inital launch time and the time achieved by using Lightspeed.
?Maxims (Guiding principles)
To ensure that my goal (improved loading times for everyone) is actually achieved, Lightspeed follows or should follow a few guiding principles:
- Efficiency over multithreading: Not everyone has a gaming cpu with 12, 16 or even 20 cores. Therefore, Lightspeed relies on caches and other measures to minimize operations wherever possible.
- Minimally invasive: Even though Lightspeed is changing existing source code, it's not an completely overhaul or rearrangement of it. Every adjustment takes place with utmost care.
- (Ideally) no incompatiblilites: It's my goal that Lightspeed is and will be compatible with almost all mods out there - if you experience any crashes, weird behaviours or other issues please create an issue on GitHub.
- Configurability: I'm aware that not all mods can be compatible with Lightspeed. But you can still use Lightspeed by disabling the problematic optimization feature in the config file.
⚗️How it works
Minecraft and Forge are using some ineffiecient or redundant ways to load, hold and process data. I found some of these.
I implemented an alternative algorithm per inefficiency and then observed the startup again to verify that the change resulted in the expected improvement.
Lightspeed's optimizations will mainly focus on:
- reducing file system operations (especially read access)
- parallelizing suitable processes
- caching computed results and data
- improved data structures
?️ Test-Setup & Compatibilties
The following section contains all mods that I'm using in my modpack. Which means that all of these mods should be compatible with Lightspeed.
Mod list
AbsentByDesign AdditionalAdditions AdditionalLanterns AdditionalLights Alcocraft Alexsmobs AmbientAdditions AmbientSounds Appetite AppleSkin AppollosAdditionalStructures Aquaculture Architects Architectury Artifacts AutoRegLib AwesomeDungeonEnd AwesomeDungeonNether AwesomeDungeonOcean Awesomedungeon BadMobs Balm Beautify Bettas BetterAdvancements BetterAnimalsPlus BetterBiomeBlend BetterFpsDist BetterModsButton BeyondEarth BiomesO'Plenty BlockCarpentry BlueSkies Bookshelf BotanyPots BottleYourXp BottledAir Breezy BuildersAddition BuildersDelight Camera Canary Chipped Chiseled Citadel ClothConfig CofhCore ColdsStructures Collective CombatRoll Configured ConnectedTexturesMod CookingForBlockheads CornDelight Create CreativeCore CreaturesAndBeasts CrittersAndCompanions Croptopia CulturalDelights Curios DecorationDelightMod DecorativeBlocks DeeperInTheCaves Delightful Diet DimDungeons DisplayCase DoggyTalents DomesticationInnovation DomumOrnamentum DrawerFps Duckies DungeonCrawl DungeonsArise DynamicSurroundings Ecologics EntityCollisionFpsFix EntityCulling ExlineFurniture ExoticBirds Expandability ExpandedCaves ExtendedLights FallingLeaves FantasyFurniture FarmersDelight FastLeafDecay FastWorkbench FeatureNbtDeadlockBeGone FerriteCore FinsAndTails FixMySpawnR Floralis Flowery FloweryCore Flywheel FoodEnhancements ForgottenBiomes FramedBlocks Furnish Geckolib Gemsnjewels GoProne Goodall GrapplingHookMod Gravestone GuardVillagers GuiClock HappyHolidays Hedgehog HopoBetterUnderwaterRuins Hyle ImmersiveEngineering ImmversiveFX InControl Incendium IndustrialForegoing InfinityButtons IntegratedStructuresAndDungeons Jade Jeed Jei JeiIntegration JourneyMap Kiwi KnightQuest Koremods KotlinForForge Krypton LazyDfu LibraryFerret LightMeals Lightspeed MacawsBridges MacawsBridgesBOP MacawsDoors MacawsFences MacawsFencesBOP MacawsFurniture MacawsLights MacawsPaths MacawsRoofs MacawsRoofsBOP MacawsTrapdoors MacawsWindows Mantle ManyIdeasCore ManyIdeasDoors Mapperbase McjtyLib MmLib ModernXl MonkeMadness MoogsVoyagerStructures MoreBeautifulPlates MoreStorageDrawers MoreVillagers MouseTweaks MrCrayfish'sFurniture Multibeds NamelessTrinkets Naturalist NaturesCompass Nekoration Nightlights NockEnoughArrows NotJustSandwich Notes Observable ObsidianBoat OhTheBiomesYou'llGo Optifine OutOfSight Pam'sHarvestcraftCrops Pam'sHarvestcraftFoodCore Pam'sHarvestcraftFoodExtended Pam'sHarvestcraftTrees Paraglider Patchouli Phireworks PickUpNotifier Placebo PlayerAnimator PresenceFootsteps PrettyBeaches PrimalReservation ProjectVibrantJourneys PuzzlesLib Pyrotastic Quark QuickPlant Reblured Rechiseled RecipesLibrary RefinedStorage Relics Reliquary RepurposedStructures RexsAdditionalStructures RfToolsBase RoughTweaks Searchlight SecretRooms SecurityCraft Selene ShetiphianCore Shrines Signpost SimpleDivingGear SimplyHouses SimplyLight Sit SmarterFarmers SmoothChunk SnowRealMagic SnowUnderTrees SnowySpirit SophisticatedBackpacks SophisticatedCore SophisticatedStorage SoundPhysics SpiceOfLife SpyglassImprovements Starlight StorageDrawers Structory StructureGel StylishEffects SuperMartijn642ConfigLib SuperMartijn642CoreLib Supplementaries SushiGoCrafting SushiMod TerraBlender Terralith TheAbyss2 TheVeggieWay ThermalCultivation ThermalExpansion ThermalFoundation ThermalInnovation ThermalIntegration ThermalLocomotion Titanium ToughAsNails TownsAndTowers Trapcraft UTeamCore UnionLib Unstructured UntamedWilds UnusualDrill UnusualEnd UsefulBackpacks VanillaDegus Villagernames Waddles Waystones WildBackport Wilds XercaMod Xnet XtraArrows YungsApi YungsBetterDesertTemples YungsBetterDungeons YungsBetterMineshafts YungsBetterStrongholds YungsBetterWitchHuts mOREs
❗Important Notes
- The optimizations will only show an effect if you are using several or a lot of mods.
- Some future optimizations may directly tweak other mods. If you don't want that Lightspeed directly improve other mods behaviour you can still disable it - but launch times will be better with keeping them activated.
- It will probably not be possible to reduce the launch time down or near to vanilla level (about 40 seconds), because in spite of optimizations there is more to do than not using any mods - But I will try my best to retract that statement at some point.
?FAQ
Questions
Q: Can I use Lightspeed in my modpack?
A: Yes - Feel free to include Lightspeed into your modpack - Remember to give credit and don't claim Lightspeed as your own creation.
Q: Which Minecraft versions are supported?
A: Lightspeed is currently available for 1.18.2. Other version will hopefully come soon - feel free to request a specific version.
Q: Are there any known incompatibilities with other mods?
A: Not yet - most mods should be compatible with Lightspeed. If you are facing any problems when using Lightspeed please create an issue on GitHub.
Q: I'm still facing high launch times. Why?
A: This mod is still work in progress - look at the Roadmap section for more info. Maybe some mods you are using contain inefficient algorithms. Feel free to create an issue on GitHub with your mod list. I will try to profile and to improve it. Another reason might be your maximum memory allocation (via -XMX) - if this value is too low, minecraft will try to free memory more often and this will hurt the launch time.
? Links
评论 0
登录后参与评分
还没有评论,来抢沙发吧