Pedro Custodio (@yyamdev) header
Pedro Custodio (@yyamdev) profile picture

Engine Programmer @AssembleTechLtd

London, England
Joined October 2014
Photo by Pedro Custodio (@yyamdev)Photo by Pedro Custodio (@yyamdev)Photo by Pedro Custodio (@yyamdev)Photo by Pedro Custodio (@yyamdev)Photo by Pedro Custodio (@yyamdev)Photo by Pedro Custodio (@yyamdev)Photo by Pedro Custodio (@yyamdev)Photo by Pedro Custodio (@yyamdev)Photo by Pedro Custodio (@yyamdev)Photo by Pedro Custodio (@yyamdev)
Genuinely surprised at how smoothly this went. Ive always suspected that an undo system could be done in a simple way with arenas but I didn’t think it would be this straightforward.
103
Best part is I was able to totally avoid writing any sort of “action” system where actions could be done and undone. All the existing code that modifies the map state remained almost identical. The only change was an extra call to save a map snapshot in a few places.
1
126
The entire thing took under and hour and worked flawlessly after fixing some finicky address calculations that I initially got wrong.
1
64
The entire map state is kept in its own bespoke arena. Undo was implemented by just taking snapshots of the “map” arena and pushing them onto a stack in a separate “undo” arena. Snapshots are popped and restored onto their original arena when ctrl+z is pressed. That’s it!
1
77
🧵I was able to retrofit a basic undo system into my existing map editor relatively painlessly in under an hour because of how I manage memory with arenas.
1
1
6
699
Sand Toy ⏳ A falling sand sim that runs entirely on the GPU.
1
3
I could be wrong but the combo of limiting FPS in the driver settings + specific seed + max render distance made me think of this. Maybe worth checking if TDR settings affects the repro rate? substance3d.adobe.com/docume…
I wonder how many extra million lines of code exist in the world just because JSON doesn’t allow trailing commas.
1
Pedro Custodio retweeted
Come and join our team at Assemble Technology! We're an experienced tech team in the North West of England supporting a number of game studios - recently @Housemarque and @LucidGamesLtd We're looking for great programmers whatever the stage of your career. assembletechnology.io
4
13
This project was written in C using the excellent Sokol libraries by @FlohOfWoe I was able to go from nothing to full 3D game very quicky having never used Sokol before. 10/10 would recommend Sokol for game jams if you like writing stuff yourself!
2
28
More D3D12 adventures. Textures are surprisingly tricky to upload to the GPU
5
Using Twitter with “latest tweets first” is such a serene experience. Way better than “Home” mode where it’s full of US politics and everyone’s depressing hot takes. Sometimes I just want to see cool gamedev stuff and not all the world’s problems at once..
2
The XCOM 2 Collection lands on iOS on November 5th. Save humanity from alien rule in the complete tactical experience of XCOM 2: War of the Chosen and four DLC packs – £23.99/ $24.99/ €27,99. Welcome to the mobile resistance, Commander. rb.gy/u8ljeu
15
46
10
126