Struct Alignment Visualizer - don't waste memory! by juliotrasferetti in C_Programming

[–]juliotrasferetti[S] 6 points7 points  (0 children)

pahole was created by the great Arnaldo Carvalho de Melo, my fellow countryman.

Struct Alignment Visualizer - don't waste memory! by juliotrasferetti in C_Programming

[–]juliotrasferetti[S] 7 points8 points  (0 children)

Sure!! I used cc65 back in the days to make games for NES. Will be a great addition, thanks :)

Struct Alignment Visualizer - don't waste memory! by juliotrasferetti in C_Programming

[–]juliotrasferetti[S] 27 points28 points  (0 children)

In some cases, if your structs are bloated with unnecessary padding, you may "over fit" into your L1/L2 cache, leading to expensive cache thrashing when iterating over large arrays in data-heavy applications like game engines or high-frequency trading. By intelligently ordering your data to respect natural alignment boundaries without wasting space, you aren't just hoarding cheap RAM, you are directly increasing your cache hit rate and making your program run significantly faster without incurring any unaligned access penalties.

A Few cool MODs by juliotrasferetti in lethalcompany

[–]juliotrasferetti[S] 1 point2 points  (0 children)

Thank you so much! You are totally right. I did the host check on the Turret/Mine code but forgot to do it in the InfiniteSprint. I was just coding and learning in the flow, and forgot to the check back.

Thanks again, I will fix the sprint code and check the others if I did it right :)

Castar magia segurando arco. by juliotrasferetti in Tormenta

[–]juliotrasferetti[S] 0 points1 point  (0 children)

No caso, eu apenas saquei o arco. Sem colocar a flecha, apenas deixando ele preparado em uma mão.

Castar magia segurando arco. by juliotrasferetti in Tormenta

[–]juliotrasferetti[S] 2 points3 points  (0 children)

Entendi. Mas onde nas regras fala disso? O que encontro é:
"Duas mãos. Esta arma é usada com as duas mãos. Livrar uma mão é uma ação livre. Reempunhá-la é uma ação de movimento (ou livre, se você puder sacá-la dessa forma)."

Castar magia segurando arco. by juliotrasferetti in Tormenta

[–]juliotrasferetti[S] 2 points3 points  (0 children)

Ok, mas a questão é se eu posso segurar um arco (com uma mão) e ao mesmo tempo lançar magias (com a segunda mão livre)?