Sokol Headers, Chips Emulators, Oryol, Nebula Device, Drakensang, C, C++, Zig, Python, WASM... @floooh@mastodon.gamedev.place flohofwoe.bsky.social

Berlin
Joined April 2013
alright, pretty big update to the Tiny Emulators page: new KC85/2 family emulators, more subtypes for the existing emulators, more file loading support, more games (mostly KC85 stuff), and the emulator git branches merged back to master: floooh.github.io/tiny8bit/ #WebAssembly
7
35
5
200
Eh ok, I'm finally done with Twitter. Fuck Elon Musk. For sokol announcements find me on Bluesky or Mastodon: @floooh@mastodon.gamedev.place bsky.app/profile/flohofwoe.b…
4
24
Andre Weissflog retweeted
I am always bemused by programmers that don’t use debuggers. It isn’t just about breakpoints and examining variables, but also being able to break into a process that has been running for an hour and issue something like: (observation_ring*255).to(dtype=torch.uint8).view(128,16,4,3,128,128).permute(1,0,2,4,5,3).cpu().numpy().tofile('results/ring_128x128.rgb')
Surprised that the new idiot in charge didn't sign an Executive Order forcing Github to rename the default branch to 'master' lol.
2
16
PSA: I just merged a minor but potentially breaking change in the sokol_gfx.h GL backend (only breaking if you use storage buffers on the fragment stage via sokol-shdc, so *very* obscure): github.com/floooh/sokol/blob…
1
11
Andre Weissflog retweeted
I extracted my little sprite renderer I wrote some time ago into an example repo. It's written in @odinlang using @FlohOfWoe's sokol headers: it renders sprites to an 320x180 offscreen and scales it up to match the display. It was a fun introduction gfx programming! Link ⤵️
3
3
18
Not bad for a "mobile CPU" (new Github linux-arm64 runners).
4
40
Andre Weissflog retweeted
Hot take: retained-mode was a premature optimization. We built Membrane using rust and egui and never looked back. When our IDE was react-based we had to worry about reflows and re-renders. With immediate-mode every frame is a re-render! But it only takes 900us
Modern C++ is such a mess that it requires 'notes' next to 'warnings' and 'errors' lol note: parameter passing for argument of type ‘tint::Number<tint::detail::NumberKindF16>’ when C++17 is enabled changed to match C++14 in GCC 10.1
6
2
78
AMD D3D11 driver question: Is anybody aware of Radeon RX 7700S drivers mis-reporting pixel format capabilities in D3D11 (specifically MSAA-renderable)? (e.g. see: github.com/floooh/sokol/issu…) Or, is there an uptodate 'capability database' somewhere to lookup stuff like this?
1
1
3
...there's also sound via sokol-audio, it's just not captured in the video. This is also where the Zig ecosystem starts to become valuable, all the tricky stuff regarding the Kitty Graphics Protocol is taken care of by libvaxis: github.com/rockorager/libvax…
1
5
New attempt to run emulator in terminal via Kitty Graphics Protocol, this time in #Zig via libvaxis, works really well (in Ghostty or Kitty terminal at least). Repo: github.com/floooh/chipz-kitt…
3
11
132
0
Tiny Emulator's 15 minutes of fame (bottom right screenshot) ;) (did some nice UI updates over the Christmas break, ported to the Dear ImGui docking branch, and the UI layout is now persisted between sessions) floooh.github.io/tiny8bit/
dear imgui 1.91.7 released github.com/ocornut/imgui/rel… - SDL_GPU backend, IsItemDeactivated signal fixes, better error handling, InputText fixes, Tables angled headers fixed on secondary monitors, Metal, Vulkan, Allegro5 backend fixes & many more.
5
36
Ok, this is pretty cool, Doom in Ghostty via Kitty Graphics Protocol as mixed Zig/C project (and it even has sound, can't record that on Mac though): github.com/cryptocode/termin…
Andre Weissflog retweeted
How to enjoy programming again
TL;DR: please write a GH issue (even for small things) instead of leaving comments on random commits, saves me a lot of time.
1
This has to be the most opaque Github feedback feature. You get a notification like on the left, just links to a commit. Then you have to scroll through the entire commit looking for a little icon on the right side which hides a comment somebody left on a line of that commit.
1
1
4
The Jai and D bindings now also got the comment treatment, also pretty cool: D bindings docs as HTML (via @TheuCatarino): sokol-d.dpldocs.info/sokol.h… Stuff like this is a good motivation to make the sokol header comments more doc-generator / LSP friendly.
9
The sokol language-bindings generators can now extract comments from the C headers and integrate them into the language bindings (with sokol-zig and sokol-odin being the first bindings with integrated comments). See changelog for details: github.com/floooh/sokol/blob…
4
4
66