Comment

Comment by bluejekyll

Is there an advantage to storing this as an array, indexed by enum, rather than a strict of 16 floats?

I can't think of a reason. Having to index by enum seems like it could be error prone.

Also, in the init(), instead of looping over all indexes of the array and setting 0, couldn't a memset be used?

parent bluejekyll 9 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton