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

[Forge] Overlay and results in overworld brings me to 0fps #8

Closed
aaronhowser1 opened this issue Aug 4, 2021 · 10 comments
Closed

[Forge] Overlay and results in overworld brings me to 0fps #8

aaronhowser1 opened this issue Aug 4, 2021 · 10 comments

Comments

@aaronhowser1
Copy link

image
The above is with 32 render distance, below is 16:
image

16 with overlay disabled:
image

image
Here's after opening the results. It might be lagging because there's so many things? Idk.

It crashed within a couple seconds, here's that crash report: https://pastebin.com/cpyDGL1i

@aaronhowser1
Copy link
Author

The results would also lead you to believe that it's lagging massively, but it's at 20 tps.

@tasgon
Copy link
Owner

tasgon commented Aug 4, 2021

The crash (I suspect) is happening for the same reason as #5, which will be fixed momentarily. As for the performance, I suspect that's being caused by the text renderer having to query a couple hundred thousand items to see if they're in range, so my two options are either some kind of spatial hashing or just refusing to render text in the world. (Either that or somehow cache text VBOs, but I haven't been able to find any resources on that.) Which option sounds best for you?

@aaronhowser1
Copy link
Author

Can it limit it to like the 1000 nearest ones or something? And only refresh every 10 seconds. Both should be configurable for best UX.

If it were just rendering text in the world (I assume you mean the text on the block) why would it be lagging in the last picture that has Overlay disabled but has the Results menu open?

@tasgon
Copy link
Owner

tasgon commented Aug 4, 2021

Can it limit it to like the 1000 nearest ones or something?

Text (for block timings) is limited to a 128 block radius when it comes to rendering. The issue comes in when the game has to loop through all elements to find the ones that satisfy that condition.

why would it be lagging in the last picture that has Overlay disabled but has the Results menu open?

That's because the results menu is also looping over every element. I'm going to add pagination after I fix the crashing issue, give me about a half hour total.

@tasgon
Copy link
Owner

tasgon commented Aug 4, 2021

The UI text issue is fixed in master

@tasgon
Copy link
Owner

tasgon commented Aug 16, 2021

Is this issue still happening for you, or can I close this?

@aaronhowser1
Copy link
Author

I haven't tested it, I'll try the newest update now

@aaronhowser1
Copy link
Author

image
Big improvement on fps!

It crashed immediately after taking that screenshot: https://pastebin.com/eyp6M1dG

@tasgon
Copy link
Owner

tasgon commented Aug 19, 2021

Crash should be fixed in the latest version

@aaronhowser1
Copy link
Author

Awesome, no crashes from ten minutes of mucking around with it. FPS issues are also entirely gone.

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

2 participants