Poor performance past 0.2.1
TheComputerizer opened this issue ยท 4 comments
I really should have reported this a while back when I noticed that, but I have been using darkness-0.2.1-all
for a while instead of the newer versions due to every version past 0.2.1 cutting my FPS in half.
I decided to do a direct FPS comparison between darkness-0.2.1-all
, darkness-forge-1.12.x-0.4.2
, and Hardcore Darkness and here are the results of that.
Unfortunately my FPS on latest version of this is still very bad.
Here is my modpack if you would like the list of mods. I am using the latest forge version of 14.23.5.2860
I did some spark profiling for 0.2.1 and 0.4.2 and something weird is definitely going on.
Here is the 0.2.1 profile and here is the 0.4.2 profile
Whatever the method io.github.yamporg.darkness.asm.EntityRendererHooks.updateLuminance()
is taking up over 50% of the client thread in 0.4.2 which would account for my FPS getting cut in half
Seems to be an issue with mod compatibility and hook injection logic. Currently the hook can potentially be injected at multiple points if other coremods insert net.minecraft.client.renderer.texture.DynamicTexture
updateDynamicTexture
calls in net.minecraft.client.renderer.EntityRenderer
updateLightmap
.
@TheComputerizer I've published v0.5.0 release with the fix, let me know if the issue is still relevant for you.
Hey @tie:
I have had this issue in the past as well. In my testing with darkness-forge-1.12.x-0.5.0.jar
, I have found the issue is no longer relevant. My FPS (when set to unlimited) is upwards of 140, as opposed to 20 fps like it was before.