Mark J. G (@MarkJGx) header
Mark J. G (@MarkJGx) profile picture

Developing https://xitter.gq/t.co/uyUCx3mpDR Engineer fellow. Always in the sandbox. Graphics oriented.

Joined May 2018
Photo by Mark J. G (@MarkJGx)Photo by Mark J. G (@MarkJGx)Photo by Mark J. G (@MarkJGx)Photo by Mark J. G (@MarkJGx)Photo by Mark J. G (@MarkJGx)Photo by Mark J. G (@MarkJGx)Photo by Mark J. G (@MarkJGx)Photo by Mark J. G (@MarkJGx)Photo by Mark J. G (@MarkJGx)Photo by Mark J. G (@MarkJGx)
me the second I get emissive GPU particles working in my renderer:
1
72
honestly this entire scene is such a flex. I think it's grotesque overkill, but you know what, you get this one Kojima.
31
I'm kinda torn about leaving AI markers in my code. I've adopted an AI enhanced workflow where I meta code a plan through my own exploration and conversation, for larger changes it around 2-4 hours but results are decent. But it's still my code, my patterns that... (1/2)
1
1
90
I've painstakingly explained and broke down. I'm very very peculiar about this, and honestly I'm not sure if this workflow is faster or not, but having Claude co-author the commit feels like a black mark to other maintainers reading the code.
1
35
First UE release that includes some of my code! Contributed a critical CEF memory leak fix a few months ago and it was accepted. Happy to have helped :)
Unreal Engine 5.8 Preview is live!! portal.productboard.com/epic… I'm incredibly proud of this release and excited to get it out to you all. We are now pushing into new territory with what you can do with the animation tools in Unreal.
3
242
Wiped up an interactive gangster NPC called "Joe" over the week as a little test of locally ran language models. Runs entirely on your CPU, no servers, offline embedded. Fun or not? I don't know yet. We'll see. #gamedev
1
1
76
Not sure if I'll take this further. Don't know if NPC conversations are fun or right for this game. I'm going to be reading through the Smallvile (2023) adjacent papers and see if I can come up with something that's fun. An inner thought loop could be cool.
34
Hacked this together today: a lightweight LLM to @PlayBadLads to see experiment with some LLM+gameplay ideas. Wrote up this nice API for it that let's me easily bind to Unreal functions, tool calls are automatically parsed from Unreal reflection. Runs on the CPU.
1
54
This is related to my original work on trying to inference GPT-NEO back in 2021, way ahead of the curve on that one. Rust to UE C ffi stuff. Tokenizer+pytorch native libraries linking shenanigans. That fizzled out because the results just weren't great. xitter.gq/MarkJGx/status/1613179…
Two years ago I decided to implement GPT based NPCs to @playbadlads (a job centered multiplayer role play game!). Here’s how that looks:
1
58
Procedural building generation update: new snapping blocks let me mark cells as air or solid, so I can hand-author buildings with WFC! #gamedev
1
7
152
The WFC placement rules are built up from observed placements from an example set. It's still a fairly small set, so it likes to fail generation quite a bit depending on the cell occupancy. You can see that in the video where a shape block is dragged, but no module appears.
35
Stay tuned for the release of the mstack, the real god mode.
30
Messing around with wave function collapse proc building generator for @PlayBadLads, messed up one of the adjacency rules which allowed for this monstrosity to be generated. Makes for a fun 3d maze. #gamedev
1
5
128
bonus: wave function collapse requires "which tile likes which other tile" information, aka adjacency rules. Instead of authoring them painstakingly by hand, I have special system that lets me build examples and have a system learn from that. The grid indicates tile boundaries.
33
TIL Valve suggests modifying Unreal's file cooking alignment setting to avoid huge steam delta download sizes. partner.steamgames.com/doc/s…
10
56
3
1,936
91,218
I've been wanting to try out Microsoft's GraphRAG on my personal Notion to potentially gain some potential insights. I quickly ran out of tokens using OpenAI's LLM endpoint, so I ended up getting Ollama inferencing with Gemini27b-it locally. 1/x xitter.gq/MarkJGx/status/1812507…
1
1
204
Ollama didn't have a OpenAI like endpoint API for their embeddings, but fortunately there is pending work on the Ollama community that I was able to stich together and get an endpoint working. Did have to compile Ollama from though. github.com/MarkJGx/ollama/ 2/x
1
1
42
Wrote a quick small article covering the NaniteStat console command. markjg.com/blog/nanite-debug… This is pretty basic stuff, but I haven't seen this been explicitly documented anywhere. Hope this helps.
1
1
4
220
TIL FarCry 3 on the consoles (Xbox 360, PS3) had a map editor 🤯 youtube.com/watch?v=aDjD8JQV…
1
107
Replying to @SebAaltonen
@SebAaltonen Have you looked at swappy for optimal frame pacing on Android? developer.android.com/games/…
19
Learned a valuable concept today. All advice is personal, when a person is asking for some don’t just give them a solution. Hear out the complexities of their situation and do your best to help guide them to a solution.
1
143
I can’t wait till the inference costs of language models becomes so low that we’ll be able to create personalized predicates for things like Twitter. For example: filter political content out of my main research feed. Or find tweets matching a LM predicate under this topic/list.
2
95
Two years ago I decided to implement GPT based NPCs to @playbadlads (a job centered multiplayer role play game!). Here’s how that looks:
1
1
1
2
384
First off, this runs completely locally with no outreach to any external API. That let’s players interact with NPCs as much as they like, posing any question. This implementation was from two years ago and was using a fairly small GPT model.
1
1
111
Unreal's garbage collector only runs every so often, and if you have a UObject that you think is becoming dangling (due to reference uncertainty). Run with the cvar `gc.CollectGarbageEveryFrame` set to 1. This will make any non strongly referenced object be marked for death ASAP.
1
140
github.com/EpicGames/UnrealE… Found a nasty editor only memory leak when looking up any physics body cooked data in UE5 (pretty much every static mesh). I was messing around with the ue5-main branch. Saw a new call, didn't look quite right! 30 leaks in the span small level load!
1
136
This particular new call was hard to diagnose as it's hidden behind a lot of cruft. I walked through the logic and it was indeed leaking memory! I think someone came along pattern'd matched it and thought nothing of it. The code dates before 2016 and possibly further.
71