Get the latest tech news

Tweaking Stunt Island's 30-year-old 3D engine


Annali da Samarcanda Alberto Marnetto's Notebook Note: the patch is available at the end of the article (HERE). This post is about its making-of.

However, credit is due to the authors: they put in nice features like a branch predictor that shows whether a jump instruction will be taken, and in which direction (back or forward), assuming that the current status of registries and memory stays the same. I ensure that the decompilation is right by setting a breakpoint at the start of the fragment ( BP CS:76E8), and for added safety I verify that the program counter ( EIP) really points to the locations shown in the listing. The easiest way to find the relevant location is to search for the instructions that follow the MUL(so the ADD / CMP / JG sequence): they only refer to register values, so their encoding ( 03 D3 3B CA 7F 1B) is the same in all the files to patch.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Year

Year

Photo of old 3d engine

old 3d engine

Related news:

News photo

Last Call For This Year's Phoronix Premium Cyber Week Sale

News photo

Disney+ and Hulu Cyber Monday streaming deal ends tonight: Get one year of the Duo Basic bundle for $36

News photo

AWS re:Invent 2024: What to expect and how to watch Amazon’s biggest event of the year