✅ unsafe code problems
What error even is this? When I click on it google doesn't give info lol.
I initially wanted to used a fixed buffer, but apparently fixed buffers can't take a structs.

9 Replies
i also tried
but that means I can't make that it a field in the struct
Man, you're doing some wacky shit here lol, is it just to learn unsafe C#?
#allow-unsafe-blocks might be of some help, then
yes and no
apparently regular C# code is slow so i need unsafe code for speed
Did you test that it's slow?
yes
not this bit specifically, but with other bits of the code
when i switched from array[] to fixed array[] my code sped up a ton
I'd link this thread in #allow-unsafe-blocks and add a short explanation, then
They'll either tell you how to get this code working, or they'll point out how you could've changed your original world without unsafe
should i just repost it there myself
ye
i should show more of the code, i might be able to get away with not using unsafe now that i think about it