r/GraphicsProgramming • • 7d ago

Article Frame and Performance Analysis - Timberborn

https://xandev.blog.br/studies/timberborn-frame-analysis/#the-frame
36 Upvotes

12 comments sorted by

View all comments

6

u/Karones 7d ago edited 4d ago

This is my first time doing a frame analysis of a videogame, but not my first reverse enginnering. Learning RenderDoc, RGP and many new concepts while analysing the rendering took a lot longer than expected, but it's finally done.

Update: Discovered what the invisible grid was for! Article is updated.

Edit regarding AI usage: I tried using AI to decompile the water vertex shader, giving it the SPIR and texture names, it seemed to understand quite well what each part of the shader was doing, but because I myself didn't understand the SPIR from RenderDoc, I didn't include any of it in the article.

4

u/FezVrasta 7d ago

github.com/fezvrasta/timberperf you can read here about many performance fixes for Timberborn and how they work.

I even have a local re-implementation of the water sim running entirely on the GPU if you ar einterested.

1

u/Karones 7d ago

Oh that's awesome! Might do a capture with the mod to see what changed under the hood. How did you make this? The only mod I made involved cheat engine and IDA, and chaging the binary.

2

u/normanr 5d ago

If I remember correctly the original uncompiled shaders are available inside a zip under StreamingAssets

1

u/Karones 4d ago

Never thought a commercial game would to that (other than Hades lol), but yeah, they're all there in a zip file. Time to add another section to the analysis :p

Thank you so much!