Andrei Drexler (@andrei_drexler) header
Andrei Drexler (@andrei_drexler) profile picture

C++, graphics, optimization, random bits of low-effort humor. Millenial boomer. Once called 'incredibly ⟦redacted⟧'. He/him

Joined November 2019
Photo by Andrei Drexler (@andrei_drexler)Photo by Andrei Drexler (@andrei_drexler)Photo by Andrei Drexler (@andrei_drexler)Photo by Andrei Drexler (@andrei_drexler)Photo by Andrei Drexler (@andrei_drexler)Photo by Andrei Drexler (@andrei_drexler)Photo by Andrei Drexler (@andrei_drexler)Photo by Andrei Drexler (@andrei_drexler)Photo by Andrei Drexler (@andrei_drexler)Photo by Andrei Drexler (@andrei_drexler)
It's been a while since my last ad_tears screenshot, so here's one taken on a beastly 15W Core i5 4210u from 2014 and its integrated HD Graphics 4400. If you've ever wondered "what's the point of optimizing a renderer into 4 digit FPS territory on modern GPUs", this is it.
5
19
144
New release, now with Steam folder detection, title demo playback, supersampling support, unclamped lightmaps, improved palettization accuracy, underwater sound filter, better initial settings and various optimizations and bug fixes: github.com/andrei-drexler/ir…
1
1
7
Apparently I managed to upload a x64 binary compiled before changing the version number (specifically looked for this, but only in the x86 build)🤦‍♂️... If you've already downloaded the x64 version, please re-download it.
Hey, if you're one of those weirdos still playing Quake in 2022 there's a new version of my QS fork with quite a few new goodies: - more optimizations - support for slightly older GPUs - software emulation mode - lightstyle lerping - lightmapped liquids github.com/andrei-drexler/qu…
8
29
1
100
Now you're probably wondering what software emulation means. In this context it's a post-processing effect that maps each pixel to a color in the currently loaded palette. There are 3 modes (r_softemu 0-3), and the main difference between them is in the way dithering is applied.
1
2
5
Update: went ahead and forked QuakeSpasm, rewriting most of the rendering code. Some before/after shots:
Replying to @andrei_drexler
Longer term, I've developed a really bad itch to fork QuakeSpasm (which vkQuake is based on) and to try moving as much code as possible to the GPU, but that seems like a pretty big chunk of time and not just some weekend coding. One more thing on the infinity pile, I guess...
4
7
52
The code is on github, and there's also a (win32-only) test release, in case anyone wants to give it a try: github.com/andrei-drexler/qu…
9
Hacking sign bits for fun and maybe a tiny bit of profit (88 -> 76 cycles on GCN): shader-playground.timjones.i…
1
5
Same approach as this, basically: xitter.gq/zeuxcg/status/12294591…
Replying to @zeuxcg
I use a slightly different construction that is more optimal for wasm since it doesn’t have a fast floating-point max, and it’s faster to manipulate sign bit directly:
Completed another lap around the sun recently. Some would say it's no big deal, but I think it's quite revolutionary.
1
7
One interesting find while looking at MSVC disassembly, trying various incantations for the SSE culling code: mask & 4 ? 32 : 40 is effectively compiled as 32 | (8 & ~(mask + mask)) which was not what I expected (a cmov, or maybe even a branch). gcc.godbolt.org/z/G7cEfj159
1
A simpler expression mask & 1 ? 0 : 8 generates identical code to 8 & ~(mask << 3) which is pretty much what I was tempted to write by hand. In the end, I went with the 'naive' versions to avoid further obfuscating the code.
1
Update: SIMD culling code now in mainline vkQuake github.com/Novum/vkQuake/com… Hoping to have another patch that will make this one obsolete soon, though, which I'm sure is exactly what every open source project owner/maintainer wants to hear 🙃
Replying to @andrei_drexler
...long story short, if you can't quite get 144 FPS on ad_tears, here's a test build with some vkQuake modifications that should increase the performance in the most demanding areas by up to 60% (assuming you've raised the host_maxfps limit): github.com/andrei-drexler/vk…
If your blur shader is turning the screen black, that's nan a'ight
1
I'm not yet at a point where it's easy to talk about my sculpting/painting program (basically a black hole that swallowed most of my youth), but seeing threads like this I still wonder sometimes if it's not a 'defeat from the jaws of victory' situation... xitter.gq/PaulJanPauptit/status/…
Realtime footage of Paint3D having foolishly registered itself as the default application to open this 580mb .OBJ file.
1
3
For reference, here's how long it takes to import a 580 MB .obj file on an AMD CPU from *2009*: youtu.be/Kd6lTpjQ-T0 (spoiler: a couple of seconds)
2
10
Looking for a radioactive cat to bite me so I get the 9 lives I need to finish all the side quests...
2
I know I'm late to the party, but I finally got to play Arcane Dimensions and... 1) it looks fantastic and the gameplay is just as good, definitely check it out if you haven't already: moddb.com/mods/arcane-dimens…
2
7
2) I also got completely sidetracked after seeing <60 FPS (on an old AMD CPU) on one of the maps, compared to 200+ on all the others. I ended up profiling vkQuake, realizing that in open areas (where vis isn't as effective) frustum culling is ~50% of the frame time, and, well...
1
2
I wish all papers (including preprints) were dated, but absent that, having VRML mentioned in the first paragraph also works pretty well.
5
I've been experimenting with mesh compression again the past few days, trying to bring the demo size down a bit (since I'm almost at the 64K mark). It looks like I can save ~2.5 KB with a new encoding scheme #screenshotsaturday
1
17
More groundbreaking results:
3
Pro tip: the best time to add support for shader reloading is *before* trying to texture a lion head model with maths! You can probably (definitely) tell I'm not an artist, but hey, at least it's better than no texture at all, and it's only 550-ish bytes... #screenshotsaturday
11
After adding some basic CI, I can't help but wonder what would happen if I were to throw squishy into the mix... I'm guessing there are some terms of service I should probably read *very* carefully 🙃
1
Happy new year, everyone!
1
If you're curious how the textures were made in the Q3 demake, you can now check out my 'texture sketchbook' on shadertoy: shadertoy.com/view/WdGGWh Many textures aren't finished, some are even just placeholders, but a few are decent, I think.
2
20
1
64
The code is admittedly kind of write-only, so the best way to find out what each line does is to just comment it out and see what changes on screen (which is what I'd do when I'd come back to add more detail to a texture).
1
1
The code for my tiny Q3 demake is finally on github: github.com/andrei-drexler/q3… The whole thing is... let's say 'experimental', both in terms of structure (unity build) and actual contents, but I wanted to release a version that would still produce the same exe.
4
19