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
28 stars 1 forks source link

[feature] Refactor material loading #17

Closed Derpius closed 2 years ago

Derpius commented 2 years ago

Describe the solution you'd like Currently it loads material flags on hit, which is a legacy from debugging, however this is extremely slow

Solution is to just cache material parameters at accel build time

Additional context Would need to implement #16 first for cleanly storing all the data at build time

Derpius commented 2 years ago

Added in 6fce5ac79afe837a59890d7ecca69904a5493bb6