Skip to content

ALU optimization by approximating weighting functions in Bicubic Lightmaps - #2023

Open
JohnMega wants to merge 1 commit into
ValveSoftware:masterfrom
JohnMega:ALU-optimization-by-approximating-weighting-functions-in-bicubic-lightmaps
Open

ALU optimization by approximating weighting functions in Bicubic Lightmaps#2023
JohnMega wants to merge 1 commit into
ValveSoftware:masterfrom
JohnMega:ALU-optimization-by-approximating-weighting-functions-in-bicubic-lightmaps

Conversation

@JohnMega

@JohnMega JohnMega commented Aug 25, 2026

Copy link
Copy Markdown

We can remove the two divisions from the h0 and h1 functions by approximating them, thus optimizing the ALU. This will have no impact on the visual quality.

Reference: Real-Time Samurai Cinema

Details are in the Desmos graph (www.desmos.com/calculator/7dcech96ju).

image

@JohnMega

Copy link
Copy Markdown
Author

@misyltoad Since you're familiar with this code, could you take a look? It's just two lines here.

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