We are currently in the process of converting the website to the new design. Some pages, like this one, are still broken. We appreciate your patience.
d7samurai
That is why I wrote "with no padding" (you even quoted it).
»
Patrick Lahey
@Kladdehelvete On intel there may be no real world consequences to ignoring alignment. On other k…
»
Patrick Lahey
@d7samurai Not quite. The compiler automatically pads out any struct that contains something req…
»
Sven
It doesn't matter what you perceive the speed to be, you can only trust actual measured data. But…
»
mojobojo
I watched and had me wondering why you would record the game state every frame? If you were to ju…
»
Livet Ersomen Strøm
I didn't quite understand whether you just wanted an algorithm to render a static starfield skydo…
»
Livet Ersomen Strøm
Hollasch's Law states that computer graphics is the only area of science where if it looks right,…
»
Rowan Crawford
I recently added the ability to sequence a series of timed actions to my game, mostly for the play…
»
Livet Ersomen Strøm
I have tested jumpaligning, codealigning and data alignment on my entire codebase, and found zero …
»
Fred
In episode 65 Casey wrote the functions ZeroSize/ZeroStruct to initialize all the bytes in a conti…
»
Gafgar (Anders Davallius)
In our game we use a system where the "damage" event can return a value to tell the bullet/damagin…
»
Casey Muratori
I should be more specific: the idea is to be able to what happens with hits, so the engine knows.…
»
Casey Muratori
The reason it is better on The Jeff and Casey Show is because that is recorded with an actual stud…
»
Casey Muratori
Actually, I think we can still solve the scalability problem with simulation regions. A simulatio…
»
Casey Muratori
Yes - mod can be very expensive. Masking is almost always significantly cheaper. But, obviously,…
»
Casey Muratori
Typically, for things you care about, you 16-byte align them, and for things that you don't care …
»
d7samurai
I'm not so sure. First of all, for that to be the case you would have to make sure that the rando…
»
Andrew Bromage
Very, very few people are anywhere near as smart as Archimedes. :lol: Yeah, about that. Square …
»
Livet Ersomen Strøm
I love seeing people code, as I am starved with that, so from my view if takes 5 yrs, then it be t…
»
Livet Ersomen Strøm
I am thinking maybe I could scale by distance to origo, or random points
»
Livet Ersomen Strøm
I think perhaps the OP wants a persistent, starfield. Something like where he can call a functi…
»
Livet Ersomen Strøm
Sounds like you have the right idea, you can combine different transformations of a function to g…
»
Livet Ersomen Strøm
This, believe it or not, generates random points uniformly on the surface of the sphere. The the…
»
d7samurai
I think perhaps the OP wants a persistent, starfield. Something like where he can call a functi…
»
Andrew Bromage
One more thing while I think about it. Deterministically placing random elements in a procedural t…
»
d7samurai
Yes, I think I know what you meant - I just kept your Foo for the sake of simplicity :) You imagin…
»
Patrick Lahey
Ok, got it. The 12 byte struct was just an example though. All you need is an odd number of stru…
»
d7samurai
I am suggesting aligning each new of memory we allocate like that (according to need). By segment…
»
Patrick Lahey
I'm not quite sure what you are suggesting. If you are suggesting that every allocation be forced…
»
d7samurai
And since we're on the topic of procedurally generated content.. This is perhaps the pinnacle of t…
»