
Indie Game Developer | Coder
inveniam viam aut faciam
Joined June 2020
- Tweets2.9K
- Following2.8K
- Followers162
- Likes10.8K
Orlando Llanes retweeted
For some reason GIFs broke in the article (worked fine in preview), and Twitter removed all the videos (???).
Without them, some examples are harder to understand. Here's the full version where everything works and you can try the live demos:
vlsch.com/blog/fluid-simulat…
BEHOLD THE BITAP ALGORITHM FOR FUZZY STRING MATCHING IN C
Fuzzy string search mostly means a 2D Levenshtein matrix, heap allocations, and branch mispredictions everywhere, etc. Just learned this today. I went to wikipedia list of algo page and randomly stumbled upon this.
Every character updates all 64 states in parallel using just bit ops. Completely branchless. Beautiful.
Orlando Llanes retweeted
Both NeXT and 3DFX tried to “do the right thing” with color spaces, and it wound up generally making them look worse than competing options. I didn’t really understand it properly until years later.
It is natural to think that a pixel with a value of 1.0 is emitting twice the photons as a pixel with a value of 0.5, so you can do the obvious linear math to calculate partial pixel coverage, blending a foreground over a background, or interpolating between colors in a texture.
If displays are “linear”, that is correct. NeXT and 3DFX were much closer to linear than other contemporary displays. NeXT had crossover from the deep graphics understanding at Pixar, and 3DFX had the SGI heritage. They did this intentionally.
If you have 10+ bits per channel like the professional rendering systems, linear displays are The Right Thing.
Unfortunately, NeXTStation Colors were 4 bits per channel and 3DFX was 5 or 6 bits per channel, and there… it was not the right thing.
Human eyes aren’t linear intensity sensors. We mostly register relative changes in intensity, so we can tell the difference between 0.01 and 0.02 as a huge doubling, while 0.99 to 1.00 is almost imperceptible.
This distribution of intensities is often referred to as the “gamma” of the display system, but the actual curves like sRGB are a bit more complicated.
If you only have a small number of discrete pixel values, you definitely don’t want to spread them evenly from 0 to 1! If you do, you will have good precision in the brights, but very stark “intensity bands” in the dark colors.
If everything was authored specifically for 3DFX, you would still have the fundamental problem with the dark bands, but more accurate blending and filtering. The problem was that artists made all of their textures in paint programs on conventional non-linear displays, so when they were drawn by 3DFX cards, they got the characteristic “washed out color” look.
You can mathematically correct textures for differences in display gamma, but I didn’t really understand the issue back in the glQuake days, and we were so enthralled by the absolute performance of 3DFX that the color fidelity didn’t get as much attention as it should have.
Even today, tons of games don’t properly handle gamma across their textures and render targets. High resolutions and 24 bit color masks most of it, but you still see it in some slight shimmerings in high contrast textures and edges.
Orlando Llanes retweeted
There's a new Dungeons & Dragons in theaters, but it's no match for the Dungeons & Dragons from 2000, with the worst deleted scene ever put on a DVD
Orlando Llanes retweeted
Shared libraries fundamentally change compiler assumptions. Because public symbols can be called from outside and interposed at runtime, optimizations like cross-unit dead-code elimination & direct inlining get restricted.
eli.thegreenplace.net/2011/1…
A classic dive by Eli Bendersky into how PIC and relocations actually work.
Orlando Llanes retweeted
"Leveling Up One's Parsing Game With ASTs" by Vaidehi Joshi - an awesome intro to understanding ASTs.
medium.com/basecs/leveling-u…
Orlando Llanes retweeted
Compiler optimizations are fascinating; one of them is the "jump threading".
Read this interesting blog to dive into the details of this optimization.
developers.redhat.com/blog/2…
"Leveling Up One's Parsing Game With ASTs" by Vaidehi Joshi - an awesome intro to understanding ASTs.
medium.com/basecs/leveling-u…
Roadmap: Understanding GPU Architecture
This roadmap is intended for those who are relatively new to GPUs or who would just like to learn more about the computer technology that goes into them. No particular parallel programming experience is assumed, and the exercises are based on standard NVIDIA sample programs that are included with the CUDA Toolkit.
cvw.cac.cornell.edu/gpu-arch…
More Roadmaps
cvw.cac.cornell.edu/roadmaps
Orlando Llanes retweeted
This is the part 7 of Everything About Memory Allocators and next one will be the last part of this series.
Let me know whether you liked this kind of series and what more do you expect.
Orlando Llanes retweeted
This is the part 6 of Everything About Memory Allocators. 2 more parts are left on this, so enjoy this read till then ;-)






























