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

Optimization: decompose Ray struct (array of struct -> struct of arrays) #315

Open
ichinii opened this issue Jul 30, 2024 · 0 comments
Open
Labels
A-core Area: The core library (rayx-core) A-core-shaders Area: Shaders in the core library (rayx-core) C-enhancement Category: Adding a new feature

Comments

@ichinii
Copy link
Collaborator

ichinii commented Jul 30, 2024

Most of the time, not the whole Ray is required. Adding the ability to access part of the Ray could reduce memory bandwidth.
Performance would be more tightly coupled with the used algorithms, because they decide which members of Ray are used.
Member variables that aren't used at all could be disabled all together

@ichinii ichinii added C-enhancement Category: Adding a new feature A-core Area: The core library (rayx-core) A-core-shaders Area: Shaders in the core library (rayx-core) labels Jul 30, 2024
@ichinii ichinii self-assigned this Jul 30, 2024
@ichinii ichinii changed the title Optimization: decompose Ray struct into components (array of struct -> struct of arrays) Optimization: decompose Ray struct (array of struct -> struct of arrays) Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: The core library (rayx-core) A-core-shaders Area: Shaders in the core library (rayx-core) C-enhancement Category: Adding a new feature
Projects
None yet
Development

No branches or pull requests

1 participant