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

Replace stack code with IMaterial #72

Merged
merged 5 commits into from
Sep 17, 2022
Merged

Conversation

yogwoggf
Copy link
Contributor

Fixes #70

PR Type (tick all that are applicable)

  • Bug Fix
  • New Feature (doesn't break Module <-> Lua compatibility)
  • New Feature (breaks Module <-> Lua compatibility)
  • Documentation Update Required

Tested Targets (only applicable for changes to the binary module, delete otherwise)

  • windows-x64-release
  • windows-x86-release

Checklist

  • I have read and understand the contributing guidelines
  • I have tested all aspects of this PR (not required)
  • I have added the watermark on the branding branch with my desired name to any content attached where applicable (only applies to showcase submissions)

Description
Before this commit, the AccelStruct would take material information from Lua. Now, it takes information directly from source.
Theoretically this should make it faster (I feel it's faster), but I've done no benchmarks yet.

There are definitely stylistic issues with the PR and some design choices that need to be reconsidered, so please review carefully.
Also:
console spam
This can be disabled, so let me know if it should be.

Before this commit, the AccelStruct would take material information from Lua. Now, it takes information directly from source.

Theoretically this should make it faster (I feel it's faster), but I've done no benchmarks yet.
@Derpius
Copy link
Owner

Derpius commented Sep 17, 2022

Either disable those warnings or use a function that checks if a key exists first

source/Utils.cpp Outdated Show resolved Hide resolved
source/Utils.cpp Outdated Show resolved Hide resolved
source/Utils.cpp Outdated Show resolved Hide resolved
source/objects/AccelStruct.cpp Outdated Show resolved Hide resolved
source/objects/AccelStruct.cpp Outdated Show resolved Hide resolved
source/objects/AccelStruct.cpp Outdated Show resolved Hide resolved
source/objects/AccelStruct.cpp Outdated Show resolved Hide resolved
source/objects/AccelStruct.cpp Outdated Show resolved Hide resolved
source/objects/SourceTypes.h Outdated Show resolved Hide resolved
@Derpius Derpius changed the title AccelStruct now takes information from Source Replace stack code with IMaterial Sep 17, 2022
@Derpius Derpius merged commit 38b9bf9 into Derpius:master Sep 17, 2022
Derpius added a commit that referenced this pull request Sep 19, 2022
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.

[feature] Replace stack-based material reading with IMaterial
2 participants