这是indexloc提供的服务,不要输入任何密码
Skip to content

Some GC reductions #698

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

Merged
merged 44 commits into from
Jul 6, 2025
Merged

Some GC reductions #698

merged 44 commits into from
Jul 6, 2025

Conversation

mrvux
Copy link
Contributor

@mrvux mrvux commented Jul 5, 2025

Hello,

here are a few GC reduction fixes.
Better caching on some states + avoid List + foreach on Window rendering

pixtur and others added 30 commits February 15, 2024 22:07
sdBox version of [RadialGradient]
This is an implemetation of the signed distance field "Box - Exact" desbribed  in the "2D distance functions" article on Inigo Quilez's website.
sdBox function is replaced by sdRoundedBox
# Conflicts:
#	.Variations/dc2273a7-8a54-4e6f-8d8e-9a675c1ef599.var
#	Operators/Types/lib/img/generate/BoxGradient.cs
#	Operators/Types/lib/img/generate/BoxGradient_dc2273a7-8a54-4e6f-8d8e-9a675c1ef599.t3
#	Operators/Types/lib/img/generate/BoxGradient_dc2273a7-8a54-4e6f-8d8e-9a675c1ef599.t3ui
#	Operators/Types/lib/img/generate/NGonGradient.cs
#	Operators/Types/lib/img/generate/NGonGradient_05463270-37d4-400f-8d0d-c50f81663304.t3
#	Operators/Types/lib/img/generate/NGonGradient_05463270-37d4-400f-8d0d-c50f81663304.t3ui
This allows to reduce the size of region where at point lighth as max intensity. Previously without this option, increasing the decay rate would not reduce the radius of that region below roughly 0.6 distance units).

float intensity = Lights[i].intensity / (pow(distance / Lights[i].range, Lights[i].decay) + 1);
@pixtur pixtur merged commit 2f4e7e3 into tixl3d:main Jul 6, 2025
1 check 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.

3 participants