Skip to content

CPU partial straightline#33

Merged
ryan-berger merged 2 commits intorberger/cpu-cleanfrom
rberger/cpu-partial-straightline
Jan 14, 2026
Merged

CPU partial straightline#33
ryan-berger merged 2 commits intorberger/cpu-cleanfrom
rberger/cpu-partial-straightline

Conversation

@ryan-berger
Copy link
Member

After some thought about how the L1 cache is functioning in our line of sight algorithm, this commit calculates all the angles and puts them into a buffer and then does an unrolled prefix max calculation on top of that.

It ends up being much quicker on my i9900k, offering about a 20% speedup, and it is expected machines with larger L1 caches will be better.

After some thought about how the L1 cache is functioning in our line of sight algorithm,
this commit calculates all the angles and puts them into a buffer, and then an unrolled prefix
max is then calculated on top of that.

It ends up being much quicker on my i9900k, offering about a 20% speedup, and it is expected machines
with larger L1 caches will be better.
@ryan-berger ryan-berger force-pushed the rberger/cpu-partial-straightline branch from a33afaf to 0517ca9 Compare January 12, 2026 04:28
@ryan-berger ryan-berger requested a review from tombh January 12, 2026 04:29
@tombh
Copy link
Collaborator

tombh commented Jan 13, 2026

Looks good, and runs on machine ✅

@ryan-berger ryan-berger merged commit fd0540c into rberger/cpu-clean Jan 14, 2026
7 checks passed
@ryan-berger ryan-berger deleted the rberger/cpu-partial-straightline branch January 14, 2026 04:39
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.

2 participants