-
Notifications
You must be signed in to change notification settings - Fork 933
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
fixes getViewDistance #3207
fixes getViewDistance #3207
Conversation
This PR seems to degrade performance a lot when groundcover is used. I have a scene where I get an FPS drop from 75 to 35 due to twice larger GPU usage. An issue ticket on our bugtracker: #6377 |
This is an incredible hit to performance, it needs to be fixed rather sooner than later. Otherwise I'm going to have to revert his @bosvensson1 . :( Any ideas? |
I will have to rethink |
Personally I perefer 0.47 behaviour (no performance hit and no pop-ins). A behaviour prior to #3126 seemed to work as well. |
Unquestionably, yes. Regretfully the 0.47 behaviour negatively impacted the behaviour of several non groundcover features. |
I have been informed by @akortunov that my addition of
Groundcover::getViewDistance
is not working in some cases. Investigations revealed that someViewData
code interacting with my additions had been quite thoroughly optimised in a way that was not sufficiently documented and interfered with the new feature. With this PR we repairgetViewDistance
while preserving such optimisations and add a necessary comment to avoid issues in the future. In addition, we now rebuild views when the globalmViewDistance
changes.