Daryl Zuniga (@sprigland) header
Daryl Zuniga (@sprigland) profile picture

Hacking on random game engine tech w/ https://teapawt.org/t.co/kG4rTrZREf🌱🏞. Previously lead dev at @BitshiftEnt; @msmakecode; @koduteam

Seattle, WA
Joined April 2021
Photo by Daryl Zuniga (@sprigland)Photo by Daryl Zuniga (@sprigland)Photo by Daryl Zuniga (@sprigland)Photo by Daryl Zuniga (@sprigland)Photo by Daryl Zuniga (@sprigland)Photo by Daryl Zuniga (@sprigland)Photo by Daryl Zuniga (@sprigland)Photo by Daryl Zuniga (@sprigland)Photo by Daryl Zuniga (@sprigland)Photo by Daryl Zuniga (@sprigland)
This is great. Two related thoughts! - Having detailed performance available at any time in any build at a single hotkey, structured to fit your application and displayed inline, is super valuable - even if you also use external profilers. microprofile at Roblox was like that. - It shouldn't matter in theory, but in practice I feel like there's correlation between units you use to think about performance and the resulting performance. We often talk about milliseconds per frame but a millisecond is an eternity! 30 microseconds is something you pay attention to, 0.03 milliseconds may slip by unnoticed.
I've been dreaming of this C++ profiler for my game for over a year. It's now here. It shows me the slowest code logic that runs over my game components in real time. Each one is a lambda that I can find at the file name and line number. An hour after I made this, I already optimized my game significantly by actually seeing what was slow and then optimizing it. For example, I optimized a C++ lambda from 750us down to 50us (cost per frame). This level of introspection into my game is god-like vision. Not seeing any perf impact of having this on either, so it's on by default.
4
8
1
99
13,714
Daryl Zuniga retweeted
"Revive" vec3 p,P;for(float z,d,i;i++<1e2;z+=d,o+=(1.2-sin(t+z/vec4(8,7,6,0)))/d){p=z*normalize(FC.rgb*2.-r.xyx),P=vec3(atan(p.y-=7.,p.x)*3.,p.z*.3,length(p.xy)-11.);for(d=1.;d<9.;d++)P+=sin(P.yzx*d+.1*z-t)/d;d=length(vec4(P.z*5.,cos(P)-1.))/2e1;}o=tanh(o/1e3);
23
122
9
1,274
43,435
synopsis post: recently i've been working on a rendering prototype. it's a Wolfenstein style fan raycaster. it has: displacement mapped walls terrain raycaster floors (entirely different tech, but texture matched). (angle constrained) real time shadows
18
26
1
375
14,820
Daryl Zuniga retweeted
First update of my online webgpu particle life simulator: the number of particle types is now also randomized each time (from 2 to 16), leading to greater variety! lisyarus.github.io/webgpu/pa…
24
36
4
546
25,766
Daryl Zuniga retweeted
Published my WebGPU Particle Life simulation online! Obviously it requires WebGPU support, and it's quite resource-demanding, so I've set the particle count to 64k for now. Also it probably doesn't work on mobile; will fix later 😅 Link below 👇
24
34
4
471
26,724
I would really like to see an open source engine that wasn't a framework. It was just a collection of libraries that work well together, each maintained by a small team. You could take any of these libraries and use it separately. Would be interesting to see where that goes.
9
2
43
4,255
Daryl Zuniga retweeted
"Heavenly" for(float i,z,d;i++<1e2;o+=(cos(z+t+vec4(6,1,2,3))+1.)/d){vec3 p=z*normalize(FC.rgb*2.-r.xyy);p.z-=t;for(d=1.;d<9.;d/=.7)p+=cos(p.yzx*d+z*.2)/d;z+=d=.02+.1*abs(3.-length(p.xy));}o=tanh(o/3e3);
12
96
2
921
24,624
Hilbert curve is so cache-local that next neighbor is always 1 unit away. This marble track wouldn't work with Morton order (or linear scanlines). Those require teleporting the ball (= cache miss).
Not a robot, but I've been writing code to procedurally generate 3D prints! Hilbert Curve marble track
8
23
311
20,097
Mesh distance field repels Water: sampling scalar SDFs and injecting the vector gradient into sim velocity field. FluidNinja LIVE 2.0 pre-alpha, 100m area, 2K sim, 260 FPS on RTX3080 #unrealengine #UE5 #realtimevfx #fluidninja
30
157
11
1,517
59,676
Daryl Zuniga retweeted
Some final vs early footage of #SplitFiction
151
559
47
12,937
985,262
Daryl Zuniga retweeted
FFmpeg makes extensive use of hand-written assembly code for huge (10-50x) speed increases and so we are providing assembly lessons to teach a new generation of assembly language programmers. Learn more here: github.com/FFmpeg/asm-lesson…
91
1,142
113
8,527
461,743
Daryl Zuniga retweeted
"Fire" vec2 p=(FC.xy*2.-r)/r.y,R;p*=1.-vec2(.5*p.y,.5/(1.+p*p));p.y-=t;float F=11.,N,d;for(R.x=F;F<50.;F*=1.2)p+=.4*sin(F*dot(p,sin(++R))+6.*t)*cos(R)/F;N=snoise2D(p*4.);d=length(p+vec2(0,t+.5))/.3-++N;N+=snoise2D(p*8.);o=tanh(++N/(.5-.1*N+max(d/.1,-d)*abs(d)/.3)/vec4(1,3,9,1));
21
78
8
974
42,088
More progress on the lighting for my cozy town building game. Lots of small tweaks and the ocean and materials are back. Still more to do with the sky lighting, but first I want to get the sun light back and add contact shadows, then some more interesting textures and foliage!
8
7
1
248
8,376
Daryl Zuniga retweeted
A fluffy cloud shader. It is using the same impostors as the trees, in case that isn't obvious.
31
117
6
1,911
49,568
REAC 2025 has been announced! Call for submissions is now OPEN! Deadline is March 28th. Our submission process is simple, give it a try! Make a good case for your presentation and see you at REAC! enginearchitecture.org/2025.…
1
11
28
3,926
Daryl Zuniga retweeted
The 8-bit breadboard computer I've been working on over the last few months is almost complete! Here it is running a program that calculates the Fibonacci numbers. Based on Ben Eater's fantastic Youtube tutorials.
3
1
1
92
2,440
Daryl Zuniga retweeted
Here are some of the magic tricks I use in my tweet shaders:
22
78
14
934
85,854