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

Texture pipeline in ExtraFPS has wrong texture bias calculation, causing unnecessary texture scaling. #3364

Open
canny bot opened this issue Jan 7, 2025 · 2 comments · Fixed by #3378
Assignees
Labels

Comments

@canny
Copy link

canny bot commented Jan 7, 2025

2.) Texture bias calculation is bugged and can lead to constant up- and downscaling of textures: If an over-budget of VRAM is detected, the discard level is increased. When memory is available again, the viewer slowly reduces discard level until an over-budget is detected. Then the cycle starts again and the viewer will never stop and reach a stable state. This is accompanied by the CPU constantly ramping up and spikes in frame times every 4-5 seconds, making it an awful and unpleasant experience. Here is a video of the problem when observing the texture console: https://gyazo.com/57cb4d19a9cd24eea22a4a8f0e52fcd2

3.) Bug #2 in texture bias calculation (in LLViewerTexture::updateClass()): While downscaling textures by increasing the discard bias, the viewer waits 1 second after a downscaling before another possible downscaling happens. However, if memory isn't low anymore, the decrement of discard bias and upscaling of textures happens every frame.

https://secondlife.canny.io/admin/board/bug-reports/p/texture-pipeline-in-extrafps-still-uses-too-much-vram-and-the-bias-is-wrong

Copy link
Author

canny bot commented Jan 7, 2025

This issue has been linked to a Canny post: Texture pipeline in ExtraFPS still uses too much VRAM and the bias is wrong. 🎉

@Dan-Linden Dan-Linden changed the title Texture pipeline in ExtraFPS has wrong texture bias. Texture pipeline in ExtraFPS has wrong texture bias calculation, causing unnecessary texture scaling. Jan 7, 2025
@Dan-Linden Dan-Linden added this to the 2024.12-ForeverFPS milestone Jan 7, 2025
@Dan-Linden Dan-Linden added bug Something isn't working team:viewer labels Jan 7, 2025
@akleshchev akleshchev self-assigned this Jan 8, 2025
@akleshchev
Copy link
Contributor

akleshchev commented Jan 8, 2025

At the moment it's either 'we are low, increase bias' or 'we are not low, decrease bias', a middle state of 'we are not low, but have little space to spare, do nothing' would provide a place for bias to reach equlibrium at.

akleshchev added a commit that referenced this issue Jan 9, 2025
Instead of when there is any space.
akleshchev added a commit that referenced this issue Jan 9, 2025
Instead of when there is any space.
akleshchev added a commit that referenced this issue Jan 10, 2025
Instead of when there is any space.
@akleshchev akleshchev linked a pull request Jan 10, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants