It turns out that ray tracing on a 42-year-old computer is actually possible, if you’re willing to wait 17 hours for each frame to load

ZX spectrum computer
(Image credit: Shutterstock.com / seeshooteatrepeat)

We hear the term ‘ray tracing’ thrown around more and more these days, being one of the features almost synonymous with modern, best-in-class visuals. It’s a rendering method that allows shadows and light to be portrayed in a more realistic, lifelike way, and is included as a graphics option in many current-generation games. Needless to say, it’s probably not the sort of technology that you’d imagine a 42-year-old computer could even dream of running. 

However, it turns out that the trusty ZX Spectrum, released by Sinclair Research back in 1982, was capable all along, at least with the brains of Google Zürich senior software engineer Gabriel Gambetta behind it. As spotted by Hackaday (via PC Gamer), Gambetta has shared how he managed to use the Spectrum’s in-built programming language, Sinclair BASIC, to get the computer to produce a shiny, ray-traced frame.

Before we get into it, it’s important to note that the ZX Spectrum has its limitations. As Gambetta notes, its processor is roughly 1,000 times slower than a modern-day computer, it has a whopping total of 48 KB of RAM, can display only 15 colors, and boasts a 256x176 resolution. Needless to say, if you’re expecting to see a beautiful, realistic screenshot from Cyberpunk 2077 come from it, that’s not going to happen, but what you can get is a still image of three colorful 3D objects with surprisingly detailed shadows. 

Gambetta went through the entire process in a detailed post on his website. But in short, after porting over a ray-tracing code into Sinclair BASIC, and a lot of testing at higher resolutions and optimizations, his final test was able to produce an image that had him staring “in disbelief for a good minute.”

This final result still suffers slightly from attribute clash - you can clearly see that some of the red in the image bleeds over into the yellow (the blue and green do too, but less so). On top of that, it took around 17 hours to render, which amounts to, erm, about 0.000016 frames per second. Not the speediest output, then. Regardless though, given the computer’s limitations, this is certainly impressive, and a truly fascinating experiment - I’d encourage anyone interested to take a look at the whole thing on Gambetta’s website

On the lookout for some new games to dive into? Be sure to check out our recommendations for the best PC games, as well as the best multiplayer PC games for some options to play with friends.

Catherine Lewis
News Writer, TechRadar Gaming

Catherine is a News Writer for TechRadar Gaming. Armed with a journalism degree from The University of Sheffield, she was sucked into the games media industry after spending far too much time on her university newspaper writing about Pokémon and cool indie games, and realising that was a very cool job, actually. She previously spent 19 months working at GAMINGbible as a full-time journalist. She loves all things Nintendo, and will never stop talking about Xenoblade Chronicles. 

Read more
Screenshot from Indiana Jones and the Great Circle with TechRadar Gaming @8K logo
Indiana Jones and the Great Circle at 8K – a fitting swansong for the Nvidia RTX 4090, or a sign that we need the RTX 5090?
V is held up at a ramen bar
Cyberpunk 2077 runs above 120fps at 4K in full path tracing using DLSS 4 and Frame Generation on Nvidia's RTX 5080 - should we be concerned about game dev optimization?
A young teenager is playing a PC game and celebrating a victory.
What's next for PC gaming in 2025?
The Nvidia GeForce 5090 GPU on display at CES 2025
Nvidia releases stats that prove DLSS and Frame Generation are here to stay - sorry, angry gamers
The Nvidia RTX 5080 GPU on a green background.
Still worried RTX 5000 GPUs don’t have enough VRAM? Nvidia’s secret weapon is powerful AI texture compression, and it’s calmed some of my fears
Image of Indy in cutscene
I just played Indiana Jones and the Great Circle on an Nvidia RTX 4080 Super - and this is the GPU you want for every triple-A game
Latest in Gaming
An operator fires a saw blade from a weapon
Call of Duty: Black Ops 6 Season 3 gets two-week delay, will now release in April
The cover art of co-op game A Way Out
A Way Out is a gritty co-op game that challenged me to make the right choice in a world full of bad ones
The player characters approach a stuffed animal in It Takes Two.
It Takes Two pushed me to the limit with clever platforming puzzles and moreish co-op challenges
Guitar Hero Mobile
Activision shares first look at Guitar Hero Mobile and, yeah, it looks like AI slop
Pulchra Fellini in Zenless Zone Zero.
Zenless Zone Zero Version 1.6 will finally let you play as a furry gunslinger
The cover art of co-op game Split Fiction
I rode a dragon, sizzled as a sausage, and won a dance-off with a monkey in Split Fiction, and that’s not even the half of it
Latest in News
Google Gemini iPhone Lock Screen
You can now access Gemini from your iPhone's lock screen
Michelle, Keats, and Doctor Amherst looking unimpressed and worried in The Electric State
Netflix drops trailer for The Electric State, and I'm getting serious District 9 vibes
YouTube TV
YouTube TV might be planning a big Netflix update that puts the best streaming services first
Google Pixel 9 Pro
Here are the 7 best Pixel 9 and Pixel Watch 3 features landing in March’s Pixel Feature Drop
Bang & Olufsen Beogram 4000C Saint Laurent Rive Droite Edition
Bang & Olufsen's latest reworked turntable is a masterpiece of retro revival, in a breathtaking wooden presentation box
Apple Watch Series 10
Apple unveils new Apple Watch bands – here's what's in the Spring 2025 collection