Orlando Llanes (@steadfastcoder) header
Orlando Llanes (@steadfastcoder) profile picture

Indie Game Developer | Coder

inveniam viam aut faciam
Joined June 2020
Photo by Orlando Llanes (@steadfastcoder)Photo by Orlando Llanes (@steadfastcoder)Photo by Orlando Llanes (@steadfastcoder)Photo by Orlando Llanes (@steadfastcoder)Photo by Orlando Llanes (@steadfastcoder)Photo by Orlando Llanes (@steadfastcoder)Photo by Orlando Llanes (@steadfastcoder)Photo by Orlando Llanes (@steadfastcoder)Photo by Orlando Llanes (@steadfastcoder)Photo by Orlando Llanes (@steadfastcoder)
Orlando Llanes retweeted
Quick mini-tutorial on how I drew a rug #pixelart
11
121
2
1,560
21,449
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…
1
8
1,046
Orlando Llanes retweeted
Comparing Sorting Algorithms
5
78
2
555
39,618
Orlando Llanes retweeted
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.
3
21
354
12,405
Orlando Llanes retweeted
This changed my perception of TRYING...
80
233
11
2,916
487,226
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.
Does anybody know why 3DfX 1 cards had such a washed out color output? In my research, circa '97 I found many people complaining about the colors. Is it gamma? 16-bit color? What can it be?
154
497
45
6,644
214,048
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
209
2,119
320
19,891
3,082,872
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.
5
1
66
9,554
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…
12
1
113
15,692
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…
1
7
111
3,497
Orlando Llanes retweeted
Another great one 😄
🤖 Made with AI
335
2,933
207
21,573
1,203,230
Orlando Llanes retweeted
One of the best I've seen so far 😜
🤖 Made with AI
714
10,501
718
53,761
2,563,476
Orlando Llanes retweeted
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
2
62
1
372
13,949
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.
1
10
120
5,754
Orlando Llanes retweeted
5
53
6
656
119,845
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 ;-)
1
12
101
3,631
Orlando Llanes retweeted
This is the Part 5 of Everything About Memory Allocators
1
12
92
3,415