Can a mod be created that turns off all unneeded mods in a modpack, so that only the active mods are running? When a disabled mod is needed, it can be turned back on. This will allow the computer to focus its resources on generating chunks or improving FPS. It's like how entity culling works, but with mods.
You can't just "disable" mods unless they are purely graphical (and they should have in-game settings to adjust them, much as vanilla itself has Fast/Fancy graphics, render distance, smooth lighting, etc); anything that adds new blocks/items/mobs/worldgen must always be active or anything they add will be lost (or not generate for worldgen mods that add no new blocks/etc), and if mods were properly optimized (as well as the base game) this wouldn't be an issue at all (my own "modpack" (a single mod but the overall amount of content is more important than the number of mods; the recent trend is to have a lot of small mods instead of a smaller number of large mods, which may be part of the problem since the game needs to load each one separately) based on 1.6.4 gets 400 FPS at max settings, generates a new world in 2-3 seconds, uses only 100-200 MB of RAM (512 allocated), and runs stably for hours, and even the largest modern modpacks should be no different (render distance/loaded chunks is all that really impacts resource usage, or the number of entities loaded, but not the overall number of different blocks/items/entities, or the size of the world):
tldr; When 1.8 is lagging and stuttering the garbage collector is working like crazy and is doing work which has nothing to do with the game itself (rendering, running the internal server, loading chunks, etc). Instead it is constantly cleaning the mess behind the code which thinks that memory allocation is "cheap".
Can a mod be created that turns off all unneeded mods in a modpack, so that only the active mods are running? When a disabled mod is needed, it can be turned back on. This will allow the computer to focus its resources on generating chunks or improving FPS. It's like how entity culling works, but with mods.
Advice/Recommendation will be apreciated thanks.
You can't just "disable" mods unless they are purely graphical (and they should have in-game settings to adjust them, much as vanilla itself has Fast/Fancy graphics, render distance, smooth lighting, etc); anything that adds new blocks/items/mobs/worldgen must always be active or anything they add will be lost (or not generate for worldgen mods that add no new blocks/etc), and if mods were properly optimized (as well as the base game) this wouldn't be an issue at all (my own "modpack" (a single mod but the overall amount of content is more important than the number of mods; the recent trend is to have a lot of small mods instead of a smaller number of large mods, which may be part of the problem since the game needs to load each one separately) based on 1.6.4 gets 400 FPS at max settings, generates a new world in 2-3 seconds, uses only 100-200 MB of RAM (512 allocated), and runs stably for hours, and even the largest modern modpacks should be no different (render distance/loaded chunks is all that really impacts resource usage, or the number of entities loaded, but not the overall number of different blocks/items/entities, or the size of the world):
You are better off using mods that attempt to fix some of this (though they are more of a band-aid than a fix):
https://github.com/TheUsefulLists/UsefulMods/blob/main/Performance/Performance118.md
https://github.com/TheUsefulLists/UsefulMods/blob/main/BugFixes/BugFixes118.md (includes fixes for bugs which cause performance issues)
https://github.com/TheUsefulLists/UsefulMods (main page with links to optimization and bugfix mods for 1.8-1.20)
TheMasterCaver's First World - possibly the most caved-out world in Minecraft history - includes world download.
TheMasterCaver's World - my own version of Minecraft largely based on my views of how the game should have evolved since 1.6.4.
Why do I still play in 1.6.4?
I see, Thanks for the feedback i appreciate the explanation, I will just use the baid-aid fixes you've given me.