Kladdehelvete Yeah. But who decide if it looks right? The artist, usually. Certainly someone who …

It would buy us a lot of performance. System memset() functions are far better tuned to take adva…

That's what I'm doing. I have a snapshot.mem file that contains the initial state, then an input.…

rathersleepy Not quite. The compiler automatically pads out any struct that contains something re…

@Kladdehelvete On intel there may be no real world consequences to ignoring alignment. On other…

@d7samurai You imagined if we perhaps had a Foo like this (with no padding), right? struct Foo …

Kladdehelvete I have tested jumpaligning, codealigning and data alignment on my entire codebase, …

I watched Handmade Hero Day 023 - Looped Live Code Editing and had me wondering why you would rec…

d7samurai I'm not so sure. First of all, for that to be the case you would have to make sure tha…

Pseudonym73 Hollasch's Law states that computer graphics is the only area of science where if i…

I recently added the ability to sequence a series of timed actions to my game, mostly for the pla…

I have tested jumpaligning, codealigning and data alignment on my entire codebase, and found zero…
Fred  — 2 years, 7 months

In episode 65 Casey wrote the functions ZeroSize/ZeroStruct to initialize all the bytes in a cont…

In our game we use a system where the "damage" event can return a value to tell the bullet/damagi…

I should be more specific: the idea is to be able to control what happens with hits, so the engin…

The reason it is better on The Jeff and Casey Show is because that is recorded with an actual stu…

Actually, I think we can still solve the scalability problem with simulation regions. A simulati…

Yes - mod can be very expensive. Masking is almost always significantly cheaper. But, obviously…

Typically, for things you care about, you always 16-byte align them, and for things that you don'…
d7samurai  — 2 years, 7 months

Kladdehelvete yes, but thats what i got too, unless I misinterpret. thanks for answers. I'm not s…

Kladdehelvete I even find it to be easy to grasp, yet I would never come up with it, [...] Very, …

I love seeing people code, as I am starved with that, so from my view if takes 5 yrs, then it be …

midnight_mero My first thought is if you use a periodic function like sin your content will be p…

d7samurai So I do not have to keep track of their position I think perhaps the OP wants a persis…

midnight_mero If I understand your question right, then yes. Using functions is a common method f…

Pseudonym73 One thing that's worth mentioning about starfields is that if you're not moving throu…
d7samurai  — 2 years, 7 months

So I do not have to keep track of their position I think perhaps the OP wants a persistent, movi…

One more thing while I think about it. Deterministically placing random elements in a procedural …

Yes, I think I know what you meant - I just kept your Foo for the sake of simplicity :) You imag…

Ok, got it. The 12 byte struct was just an example though. All you need is an odd number of str…