Also, some compilers actually optimize zero-setting for-loops into memset calls.
Googling about…
d7samurai
If you're not using SIMD instructions (https://software.intel.com/sites/landingpage/I…
Good point. I didn't think about small blocks.
cmuratori
In general, I don't like the tone of your posts, so I will not be reading them in the …
Yeah, my input is 440bytes per frame. I haven't looked to see how big Casey's version is. But eve…
Kladdehelvete But have you actually meassured the difference of "bad alignment" on real code? Lik…
The file is large because it is actually saving all the memory that is allocated, not just the 64…
It would be helpful to have more information. Depending on how you are handling events you might …
cmuratori Err, that's what the codebase already does? Not sure what you guys are saying here... …
Kladdehelvete Code is so fast, that it will only be limited by how often there is data available
…
The point is less memory reads per instruction.
cmuratori But assuming you are writing your code to use full-width loads (SSE, AVX, or AVX 2), t…
Maybe the OP is not calling your Win32RecordInput(&Win32State, NewInput) in the game loop?
@…
d7samurai I was just about to mention something to Kladdehelvete about SIMD, but I see Casey took…
cmuratori Kladdehelvete I have tested jumpaligning, codealigning and data alignment on my entire …
Err, that's what the codebase already does? Not sure what you guys are saying here... when you s…
Yeah, just to follow up on this further: it's a bad idea to do something like "I tested to see if…
Actually, the answer is usually "it depends" :) Sometimes the system memset is actually slower b…
I was just about to mention something to Kladdehelvete about SIMD, but I see Casey took care of it.
Kladdehelvete I have tested jumpaligning, codealigning and data alignment on my entire codebase, …
rathersleepy @Kladdehelvete
On intel there may be no real world consequences to ignoring alignme…
5sw
It doesn't matter what you perceive the speed to be, you can only trust actual measured dat…
It would be helpful to have more information. Depending on how you are handling events you might…
Clearly I misunderstood what you were trying to say. My mistake.
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 …