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

Suggestion on how to fix the game lagging while displaying chunks #28

Closed
dolphin007x opened this issue Oct 27, 2021 · 6 comments
Closed

Comments

@dolphin007x
Copy link

Hi, I saw on the README that you pointed out the game freezes while loading chunks.

What I think you should do is add a render distance feature. If you've played Minecraft, you would know that there is a value
called render_distance that basically detect the player's position in the world, and then renders a certain number of chunks so that the game does not lag. Else, if the world is infinitely generated, and the render distance is set to infinite (as it is now), it could cause the game to freeze like anything or even crash the game. Please implement this feature so that the game runs as expected.

Thanks,
@Adatta1276

@N3RDIUM
Copy link
Owner

N3RDIUM commented Oct 27, 2021

This is fixed, I was trying just that. I've implemented Minecraft-like chunk rendering long before, but it had a lot of bugs. I just fixed it today.

@N3RDIUM
Copy link
Owner

N3RDIUM commented Oct 27, 2021

Look at the readme!

@N3RDIUM N3RDIUM closed this as completed Oct 27, 2021
@Genius398 Genius398 reopened this Oct 27, 2021
@dolphin007x
Copy link
Author

Also, did you try implementing the feature so that the inside faces and sides/edges of the cube are not rendered? I guess you've already done this since this is a feature of Minecraft, but can you confirm?

@N3RDIUM
Copy link
Owner

N3RDIUM commented Nov 17, 2021

Yes I did!

@N3RDIUM N3RDIUM reopened this Nov 17, 2021
@N3RDIUM
Copy link
Owner

N3RDIUM commented Nov 17, 2021

That feature was added very recently, like yesterday!

@dolphin007x
Copy link
Author

dolphin007x commented Nov 17, 2021 via email

@N3RDIUM N3RDIUM closed this as completed Nov 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants