正在使用大型整合包?是否也遇到过启动时间长得离谱的问题?
那么我的模组 "Lightspeed" 可能就是你在寻找的答案。
Lightspeed 将不会更新到 Minecraft/Forge 1.20,因为其中大部分优化功能已经包含在该版本中(至少是类似的)。
注意事项:此模组
- 最初是为 1.18.2 开发的。随着 Forge 的一些优化,其在 1.16.5/1.19.2 上的实际提升幅度会降低。
- 是客户端模组,但理论上也能在服务器端运行。不过主要的差异体现在客户端上。
- 仅支持 Minecraft 最新的两个主要发布版本,就像我所有的其他模组一样(目前为 1.18.2 和 1.19.2)。
? 正在寻找更多性能优化模组?试试:
?感谢大家达到 100,000 次下载 —— 在这么短的时间内取得这样的成绩真是令人难以置信 :)
? 请求:如果您发现任何问题,请报告它们(在 GitHub 上)—— 任何改进都不值得以崩溃或兼容性丧失为代价。
? 特别感谢 gaxyll 为我设计标志图 - 非常感谢。
?关于
Lightspeed 是一款启动优化模组,旨在显著减少在使用(重度)整合包时 Minecraft 的启动时间。
目前,Lightspeed 可将 Minecraft 的启动时间缩短约 48% - 71%。
此模组仍在开发中,所有优化功能将逐步添加,以确保稳定且逐渐改善的体验。
为了让您可以追踪每次更新带来的启动时间提升,Lightspeed 会在标题界面显示启动时间(请参阅“图片”标签页)。
? 动机
我自己也在一个大型整合包中使用它,该整合包包含 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。
⚗️工作原理
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
❗重要说明
- 如果您使用多个或大量模组,优化效果才会显现。
某些未来的优化可能会直接调整其他模组。 为了整体兼容性,针对特定模组的优化将仅更改 Minecraft 的代码,而不是实际的模组代码。
- 可能无法将启动时间减少到接近原版水平(约 40 秒),因为尽管有优化,但使用模组时的工作量比不使用任何模组时要多——但我会在某个时候尽力收回这一说法。
?常见问题解答
问:我可以在我的整合包中使用 Lightspeed 吗?
答:可以——请随意将 Lightspeed 包含在您的整合包中——请记住注明出处,并不要声称 Lightspeed 是您的原创作品。
问:支持哪些 Minecraft 版本?
答:Lightspeed 目前适用于 1.16.5、1.18.2 和 1.19.2。
问:是否已知与其他模组存在不兼容问题?
答:目前没有——大多数模组应该与 Lightspeed 兼容。如果您在使用 Lightspeed 时遇到任何问题,请在 GitHub 上创建一个问题报告。
问:我仍然面临较高的启动时间。为什么?
答:该模组仍在开发中——请参阅“路线图”部分以获取更多信息。也许您使用的某些模组包含低效的算法。欢迎在 GitHub 上提交包含您的模组列表的问题报告,我将尝试进行性能分析并加以优化。另一个可能的原因是您的最大内存分配(通过 -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.
Lightspeed will not be updated to Minecraft/Forge 1.20 as most of its optimizations are already included there (at least similar).
Notices: This mod
- was originally developed for 1.18.2. Since some optimizations of Forge the actual improvement for 1.16.5/1.19.2 will be lower.
- is client side but should also work on server side. However the major difference should be seen on client side.
- is only going to support the last two major release versions of Minecraft just like all of my other mods (that's currently 1.18.2 and 1.19.2).
? Looking for more performance mods? Try:
?Thank you for 100.000 Downloads - That's incredible for this short amount of time :)
? Request: If you notice any issues please report them (on GitHub) - no improvement is worth having any crashes or incompatibility.
? Big shoutout to gaxyll for creating the logo for me - tysm.
?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% - 71%
This mod is still work in progress and all optimizations will be added bit by bit to ensure a stable and slowly 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).
? 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 initial 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 incompatibilities: 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.
⚗️How it works
Minecraft and Forge are using some inefficient 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 & Compatibilities
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.
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. In favor of overall compatibility mod-specific optimizations will only change the code of minecraft instead of the actual mod code.
- 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
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.16.5, 1.18.2 and 1.19.2.
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
登录后参与评分
还没有评论,来抢沙发吧