Basicly, this mod removes the ontick check in BlockFlower subclass that checks if it can still exist or should uproot the block based on the blocks around it, And if it can see the sky. This means ALL blocks that derive from it should use less cpu! Checking if the block can see the sky required the block to check *every* block above it! (Including air blocks), Very expensive.
it was causing huge lag spikes every 1.2 seconds on my FPS graph on a brand new world. these spikes are not there in 1.5.1, So I knew something notch added in 1.6.6 was the cause. Tallgrass was it.
Should be compatable with any mod that does not edit vt.class
Should not cause any changes in how minecraft plays. It does disable the light uprooting check untill you alter a block near the plant. However it could affect some automated farms, Because no longer is minecraft CONSTANTLY checking if flowers and grass should be uprooted. However it does still do the check when nearby blocks are updated, So I believe automated farms should still work as desired.
I can alter it to still have the lighting uproot check for all except tallgrass if people want.
(Tall grass, Mushrooms, Saplings, Flowers and all 'crops' are confirmed to be affected by this mod, Cactus are not however)
Please report if it causes any problems with automated farms. The 'On nearby block change' check is still there, So automated farming methods should still work fine.
Sweet merciful man-beans, it works! Thank you so much for releasing this mod. I've been getting those constant lag spikes as well and with this simple mod I can now fully enjoy the Minecraft experience once again. I'll keep this thread in mind just in case something comes up with this mod. Again, thank you!
It should'nt. At worst it would leave plants planted when there light levels where wrong, And you might get desynced.. seeing plants that should of uprooted.
Plants uprooting due to incorrect light level seems rather rare however, so I find it a small sacrifice to get rid of lag spikes. (I guess someone might use it as a farming method however)
If requested, I could alter just the Tallgrass class to make the mod only affect tallgrass.
Bockwurst: You don't need to generate a new world, it should take effect instantly.
However once you start building redstone stuff, that lag will swamp the lag you'd notice from tallgrass. So for best test, disable all redstone osillators first.
I won't promise this mod will make a huge diffrence in FPS, But it will help reduce annoying little lags that cause inconsistant FPS, resulting in FPS looking worse.
Ever wonder why most games look rock smooth at 40fps, yet minecraft is a lagfest at even 60fps? Its because of spikes in frame time.
While not having the problem of lagspikes with the vanilla version of Minecraft, I do have it when installing WildGrass, cause mostly by the wildgrass and lilies mods, and not the vines.
I was wondering if you could maybe work on some sort of version that would work with Wildgrass maybe? I'm gonna ask ejhopkins if he wants to look into it himself.
is this mod still accessible? Am making a huge garden and cant stand the lag spikes. My symptoms appear to be the same as all described above and would love to try this mod out.
Download
Just drop it into your minecraft.jar
Basicly, this mod removes the ontick check in BlockFlower subclass that checks if it can still exist or should uproot the block based on the blocks around it, And if it can see the sky. This means ALL blocks that derive from it should use less cpu! Checking if the block can see the sky required the block to check *every* block above it! (Including air blocks), Very expensive.
it was causing huge lag spikes every 1.2 seconds on my FPS graph on a brand new world. these spikes are not there in 1.5.1, So I knew something notch added in 1.6.6 was the cause. Tallgrass was it.
Should be compatable with any mod that does not edit vt.class
Should not cause any changes in how minecraft plays. It does disable the light uprooting check untill you alter a block near the plant. However it could affect some automated farms, Because no longer is minecraft CONSTANTLY checking if flowers and grass should be uprooted. However it does still do the check when nearby blocks are updated, So I believe automated farms should still work as desired.
I can alter it to still have the lighting uproot check for all except tallgrass if people want.
(Tall grass, Mushrooms, Saplings, Flowers and all 'crops' are confirmed to be affected by this mod, Cactus are not however)
Please report if it causes any problems with automated farms. The 'On nearby block change' check is still there, So automated farming methods should still work fine.
testing now!
hmm...still lagspikes (I didn´t noticed a real difference with and without...)
Have I to generate a new world?
It should'nt. At worst it would leave plants planted when there light levels where wrong, And you might get desynced.. seeing plants that should of uprooted.
Plants uprooting due to incorrect light level seems rather rare however, so I find it a small sacrifice to get rid of lag spikes. (I guess someone might use it as a farming method however)
If requested, I could alter just the Tallgrass class to make the mod only affect tallgrass.
Bockwurst: You don't need to generate a new world, it should take effect instantly.
However once you start building redstone stuff, that lag will swamp the lag you'd notice from tallgrass. So for best test, disable all redstone osillators first.
I won't promise this mod will make a huge diffrence in FPS, But it will help reduce annoying little lags that cause inconsistant FPS, resulting in FPS looking worse.
Ever wonder why most games look rock smooth at 40fps, yet minecraft is a lagfest at even 60fps? Its because of spikes in frame time.
EDIT: Man, not this mod that caused that crash anyway...
I was wondering if you could maybe work on some sort of version that would work with Wildgrass maybe? I'm gonna ask ejhopkins if he wants to look into it himself.
I love you so much. If I could give you more than just +rep I could
Glad its not causing any problems for anyone either.
Most likey. At least, once I bother updating to 1.7.x and all the other mods I use are updated..
Does anybody have a copy of this mod somewhere?