Thorfusion / Mekanism-Community-Edition

An customized version of mekanism
Other
21 stars 12 forks source link

Add ambient Occusion to Mekanism blocks #31

Open DrParadox7 opened 1 year ago

DrParadox7 commented 1 year ago

Describe the bug Mekanism causes tremendous loss of FPS, especially any large scale multiblock such as the Thermal Evaporation Plant.

One of the causes of such is that every single Mekanism block renders all faces at all time which can get quite resource intensive: image

This includes blocks such as Charcoal Block and Metal Blocks that may be used by users in large scale buildings, unknowingly decimating their FPS.

To Reproduce Use some sort of no-clip mod to see all the extra faces being rendered in large scale multiblock structures.

I use Spectator mode from Et Futurum Requiem

maggi373 commented 1 year ago

I already know this (for years), but i also have to be honest. My java skills are limited and I dont have much time for projects. I will see what i can do

maggi373 commented 1 year ago

does this only affect mekanism ce or also the original mekanism? and https://github.com/Bogdan-G/Mekanism has some stuff on render from what i remember, you could look into that

DrParadox7 commented 1 year ago

It affects both the original and CE. Testing is as simple as going on EFR spectator mode and looking at the blocks themselves from underground: image

I'll have a look at the Bogdan-g fork and comeback to you if it addresses these issues.

DrParadox7 commented 1 year ago

and https://github.com/Bogdan-G/Mekanism has some stuff on render from what i remember, you could look into that.

Unfortunately none of those commits fixed this issue

maggi373 commented 1 year ago

then we need to redo the render, however we can switch the render for the blocks that dont need the fancy one