Derpius / VisTrace

Garry's Mod binary module for tracing meshes at high speed on the CPU (and much more)
https://derpius.github.io/VisTrace
MIT License
27 stars 1 forks source link

Replace stack code with IMaterial #72

Closed yogwoggf closed 2 years ago

yogwoggf commented 2 years ago

Fixes #70

PR Type (tick all that are applicable)

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

Checklist

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.

Derpius commented 2 years ago

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