The BDcraft forum has migrated.
You are currently browsing the Archived BDcraft Forum.
To post a new topic, comment or patch, let's go to the new forum: BDcraft Community Forums

PSA: Mods with Liquids & HD Textures Cause Major Lag

13 replies [Last post]
pcmaster160's picture
pcmaster160
Offline
I released a major BDcraft patchI searched for an answer myselfI explored bdcraft websiteI like to comment everythingI love to post here
Joined: 19/03/2012

Long Version: Just a heads up for the community. Currently there is a bug with forge liquids (previously in buildcraft) where the liquids will cause major tick lag. You can tell if this is happening if you hit shift f3 in minecraft (in a game) and the tick is taking a large amount of the pie chart. The quick fix is to simply use lower resolution textures for that mod or delete the HD textures themself for that mod. This happens with any mod that uses liquids, so buildcraft oil/fuel. Forestry adds lots (seed oil, biomass...), railcraft (steam, creosote oil), extra bees (liquid dna), Thermal Expansion (liquid redstone) and thats a few off the top of my head. XYcraft adds 15! but the liquids capsules aren't textured so the liquids remain low res.
If you are smart enough to figure out which texture sheet contains the liquid base textures for the mod you can remove that one and keep the rest of the textures and the lag will go away.
Why it happens: Forge scales the liquids to the size of the sheet which contains the liquid textures which is there to make custom liquid textures easier to implement in the future. It has done this since 1.2.x? and has not been a problem. Since 1.4 I have noticed huge lag when adding forestry (as has Hanfox), I asked sengir (on the forestry mcf topic) about it and he said the only thing he could think of that could cause it would be liquids. So I scaled up xycraft liquids to 128x to test and my fps went from 30 to 5-10 with xycraft only adding 15 liquids. This may have been an issue before and liquids just weren't used as much or something has changed in the liquid texturefx making it take longer to calculate than before. Either way this isn't a problem with the original 16x16 textures (since they are doing 8 times less calculations than at 128x) so removing the sheet which holds the liquids textures for your mods texture pack folder will stop the issue, although it will also remove all the HD textures held in that file.

Short Version: If you are using a mod that adds liquids (see long version for examples) and are getting lower than usual fps since 1.4 and up, use a lower res texture patch for that mod or delete the textures for that mod entirely to get fps back to normal. Its a bug in forge at the moment.

Comments

HanFox's picture
HanFox
Offline
I am Forum Lead ModeratorI released a major BDcraft patchI love galleriesI searched for an answer myselfThe Cake is a lieI explored bdcraft websiteI like to comment everythingI love to post here
Joined: 16/04/2012

Goddamn you Forge you big fat API of evil Very Angry

This explains the random disabling and enabling of mods fixing and making the issue worse.

Now I bet we have to wait about 10 years for a fix to be pushed...

pcmaster160's picture
pcmaster160
Offline
I released a major BDcraft patchI searched for an answer myselfI explored bdcraft websiteI like to comment everythingI love to post here
Joined: 19/03/2012

An update to this, basically we are just getting modders to put liquids in separate sheets from everything else. That way we can make liquids like 32x32 or 64x64 (depending on testing) and it will look fine since its just the original texture mirrored many times and will stop the lag.

Timmie3054's picture
Timmie3054
Offline
I released a major BDcraft patchI searched for an answer myselfI explored bdcraft websiteI like to comment everythingI love to post here
Joined: 25/04/2012

[quote=pcmaster160] basically we are just getting modders to put liquids in separate sheets from everything else.[/quote]
Lol who the hell is we?

pcmaster160's picture
pcmaster160
Offline
I released a major BDcraft patchI searched for an answer myselfI explored bdcraft websiteI like to comment everythingI love to post here
Joined: 19/03/2012

[quote=Timmie3054][quote=pcmaster160] basically we are just getting modders to put liquids in separate sheets from everything else.[/quote]
Lol who the hell is we?[/quote]
me n han lol
u guys were excluded bc u were too late to the party. it has been done. Except i gotta nag cj to fix buildcraft again.

ansatsushaa's picture
ansatsushaa
Offline
I explored bdcraft website
Joined: 06/01/2013

Hello I was wondering if there is a fix for this yet? I'm currently using the 64x SphaxBDcraft texture pack with add-ons for Direwolf20's FTB modpack and the ticks are off the chart for my pie chart. If i stand still ill raise to 90ish FPS but as soon as i start moving i drop to around 25fps and just lag-walk everywhere i go.

pcmaster160's picture
pcmaster160
Offline
I released a major BDcraft patchI searched for an answer myselfI explored bdcraft websiteI like to comment everythingI love to post here
Joined: 19/03/2012

[quote=ansatsushaa]Hello I was wondering if there is a fix for this yet? I'm currently using the 64x SphaxBDcraft texture pack with add-ons for Direwolf20's FTB modpack and the ticks are off the chart for my pie chart. If i stand still ill raise to 90ish FPS but as soon as i start moving i drop to around 25fps and just lag-walk everywhere i go.[/quote]
Well you might just have a bad computer lol
We got every mod to use a different liquids sheet, so each mod uses 16x16 liquids now except buildcraft which is minor since it only adds 2 liquids.

BobertThe3rd's picture
BobertThe3rd
Offline
I searched for an answer myselfI explored bdcraft websiteI like to comment everythingI love to post here
Joined: 02/02/2013

Well at least the liquid textures aren't using real wave algorithms. I once designed a parallel program to simulate waves, that was a beasty. It is quite fun to watch the what happens when you get an off by 1 error in a parallel program simulating waves. It was such an epic fail I think the parallel programming professor posted the pic of it in his office. I should find that pic, unfortunately I think it is on my laptop which drowned in Devil's lake and has been having issues ever since (never actually entered the water, but with all the rain and humidity there ... very, very harsh on computers, destroyed a few of my RPG books too, I was sad; Waterproof tent = not rated for Devil's Lake Very Happy, waterproof backpack ... also not rated for Devil's Lake)

pcmaster160's picture
pcmaster160
Offline
I released a major BDcraft patchI searched for an answer myselfI explored bdcraft websiteI like to comment everythingI love to post here
Joined: 19/03/2012

[quote=BobertThe3rd]Well at least the liquid textures aren't using real wave algorithms. I once designed a parallel program to simulate waves, that was a beasty. It is quite fun to watch the what happens when you get an off by 1 error in a parallel program simulating waves. It was such an epic fail I think the parallel programming professor posted the pic of it in his office. I should find that pic, unfortunately I think it is on my laptop which drowned in Devil's lake and has been having issues ever since (never actually entered the water, but with all the rain and humidity there ... very, very harsh on computers, destroyed a few of my RPG books too, I was sad; Waterproof tent = not rated for Devil's Lake Very Happy, waterproof backpack ... also not rated for Devil's Lake)[/quote]
or, it could use what the minecraft liquid textures use, and use a few images instead of lagging out the game calculating each pixel...

cIoudcuckoo's picture
cIoudcuckoo
Offline
I like to comment everythingI love to post here
Joined: 19/01/2013

So how exactly do I go about fixing the individual liquid textures in all of the affected mods (I'm using all of them)? I noticed that removing the individual 128x128 pixel blocks that represent, let's say fuel from Buildcraft for example, in the texture sheets doesn't work. Removing the whole sheet does work, but it would be a shame to have to endure non-128x fox this small problem.
Am I required to remove the whole sheet for the liquids to go back to regular non-HD textures (and therefore fix the lag) or is there a better solution?

HanFox's picture
HanFox
Offline
I am Forum Lead ModeratorI released a major BDcraft patchI love galleriesI searched for an answer myselfThe Cake is a lieI explored bdcraft websiteI like to comment everythingI love to post here
Joined: 16/04/2012

[quote=cIoudcuckoo]So how exactly do I go about fixing the individual liquid textures in all of the affected mods (I'm using all of them)? I noticed that removing the individual 128x128 pixel blocks that represent, let's say fuel from Buildcraft for example, in the texture sheets doesn't work. Removing the whole sheet does work, but it would be a shame to have to endure non-128x fox this small problem.
Am I required to remove the whole sheet for the liquids to go back to regular non-HD textures (and therefore fix the lag) or is there a better solution?[/quote]
For Buildcraft use this fix:
http://www.minecraftforum.net/topic/1645132-147buildcraft-fxfix-more-fps...

Everything else, besides XyCraft, should already be fixed as long as you're using up-to-date mods and have deleted and then re-added the newest texture patches.