hn.today

Classic PC demoscene productions running natively in the browser

treylorswift.github.io113 points99 comments
Screenshot of Classic PC demoscene productions running natively in the browser

A project that runs classic PC demoscene productions natively in the browser, presenting a menu of preserved demos such as Unreal (Future Crew, 1992), Second Reality (Future Crew, 1993), Crystal Dream II (Triton, 1993) and Stars: Wonders of the World (NoooN, 1995). Each demo’s original loaders, music players and effects execute exactly as they did on original hardware; the original release files are served unchanged. The interface mimics retro BBS aesthetics, includes credits, and tracks visits anonymously without IP logging or tracking cookies.

Execution is achieved by recording every block of x86 code the demo actually executes on an emulator, translating those recorded instructions one-for-one into C with exact cycle timing, and compiling that C to WebAssembly alongside precise models of the hardware the demo talks to (timer, VGA, Sound Blaster). The compiled result is verified event-for-event against the emulator - matching interrupts, port accesses and video frames at the same emulated times. The work demonstrates faithful, cycle-accurate reproduction of complex DOS demos in modern browsers; visual smoothness is best on displays running 70 Hz (or integer multiples). Source and additional details are available on GitHub.

Read on treylorswift.github.io99 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Web

Beauty in DVD Menus

Beauty in DVD Menus

DVD menus evolved from simple entry points to intricate designs that showcased the format's capabilities in the early 2000s. They often reflected the transition from 4:3 to 16:9 aspect ratios, influencing their layout and design choices. (vale.rocks)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.