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

Early return optimisation for volume rendering with tricubic interpolation + adjustable sampling rate multiplier #240

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

mlavik1
Copy link
Owner

@mlavik1 mlavik1 commented Apr 14, 2024

Early return optimisation for volume rendering with tricubic interpolation + adjustable sampling rate multiplier

Two changes:

Optimised volume rendering tricubic interpolation

We now fetch the density value without tricubic interpolation first, to see if we can do an early return.

This has a minimal cost, but for transfer functions where the lowest density values are mapped to zero then the performance benefit is great (up to 2-3 times faster).

Sampling rate multiplier setting

Previously I've advised users on very low-end devices (or AR) to modify the "MAX_NUM_STEPS" values in the shader directly, to improve rendering performance at the cost of visual quality. Now there's a setting for this:

图片

@mlavik1 mlavik1 merged commit 09eec03 into master Apr 17, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

1 participant