C2ME-fabric icon indicating copy to clipboard operation
C2ME-fabric copied to clipboard

Fix vanilla lag problem when generating new chunks

Open MiFliK opened this issue 3 years ago • 6 comments

I noticed when something while exploring the world When uploading chunks that you haven't been to Fps drops from 60 to 0 and the game starts to freeze and sag This problem is observed with the mod And in a vanilla game When playing for 32 chunks, FPS drops especially when you download new chunks

When examining old chunks, everything is normally stable 60 fps When I explore new chunks, FPS falls Since the mod c2me aims to improve chunk performance I hope there is a way to fix these lags.

Video in which lags are visible https://www.youtube.com/watch?v=Ifd_I_dL0Zk

The first 27 seconds play in the created chunks 51 seconds creating new chunks

MiFliK avatar Jan 12 '22 08:01 MiFliK

What other mods do you have installed? What version of C2ME are you using? Have you tried without using a bleeding edge version of Sodium?

Treetrain1 avatar Jan 13 '22 22:01 Treetrain1

C2me version 0.2.0 alpha 6.2 Sodium version alpha 5 Launched the game without the latest version of sodium Chunks are loading slowly The lags are still there

ghost avatar Jan 14 '22 05:01 ghost

Try installing starlight and try reproduce this again.

ishland avatar Jan 14 '22 12:01 ishland

I noticed while watching the video and while using this mod myself that a lag spike often occurs when garbage collection happens (watch the memory usage in the video - when it goes down, there's often a lag spike at the same time). There seems to be other lag too, but at some points this looks like the main cause of the lag in the video.

ghost avatar Jan 15 '22 11:01 ghost

I use starlight and litium

ghost avatar Jan 15 '22 14:01 ghost

C2ME is designed for server-side performance improvements like lithium so it won't have much effect on client-sided rendering related things. Therefore unfortunately, there isn't any plan to fix client-sided performance. For client-sided rendering performance, I would suggest checking out sodium.

ishland avatar Jan 15 '22 15:01 ishland

Tracked in #123

ishland avatar Aug 16 '23 10:08 ishland