Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vanilla lag problem when generating new chunks #106

Closed
ghost opened this issue Jan 12, 2022 · 7 comments
Closed

Fix vanilla lag problem when generating new chunks #106

ghost opened this issue Jan 12, 2022 · 7 comments
Labels
status: more info needed Further information is requested

Comments

@ghost
Copy link

ghost commented Jan 12, 2022

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

@Treetrain1
Copy link

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?

@ghost
Copy link
Author

ghost commented Jan 14, 2022

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

@ishland
Copy link
Collaborator

ishland commented Jan 14, 2022

Try installing starlight and try reproduce this again.

@ghost
Copy link

ghost commented Jan 15, 2022

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
Copy link
Author

ghost commented Jan 15, 2022

I use starlight and litium

@ishland
Copy link
Collaborator

ishland commented Jan 15, 2022

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 ishland added the status: more info needed Further information is requested label Jan 18, 2022
@ishland
Copy link
Collaborator

ishland commented Aug 16, 2023

Tracked in #123

@ishland ishland closed this as not planned Won't fix, can't repro, duplicate, stale Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: more info needed Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants