Skip to content

Stéphane Hockenhull's website

Bits and Can-do Dad

Raytracing in < 2KiB

Posted on 2011-12-31 By rv6502 No Comments on Raytracing in < 2KiB
Raytracing in 2KiB (Click to download)

A first prototype for the “4K Executable Graphics” competitions.
The executable is 1616 bytes using UPX (2178 bytes uncompressed)
including VESA RGB/BGR 24/32bit detection, automatic resolution selection and VGA fallback.

(64bit windows users will need to use dosbox to run the executable)

It’s a lot of fun to optimize for size rather than speed, making and reusing as many function calls as possible to reduce the code footprint, unrolling short loops and restructuring the code to produce as many repeating byte strings as possible for the compressor.

Experiments, MSDOS

Post navigation

Previous Post: Fixing that OpenPandora hinge design
Next Post: Brickster for Game Boy Color

Related Posts

Bad Duino – Bad Apple!! on Arduino Arduino
Computer Vision Experiment: 3D scanning on the cheap. Computer Vision
Computer Vision Experiment: Barcode Scanner Computer Vision
Optimizing GLES2.0 Shaders : The case of scale2x on PowerVR SGX 530 Experiments
Fixing that OpenPandora hinge design Experiments

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Archives

  • August 2022
  • October 2019
  • July 2019
  • January 2019
  • January 2018
  • July 2014
  • June 2014
  • May 2012
  • January 2012
  • December 2011
  • December 2010

Categories

  • Arduino
  • ATmega32U4
  • ATmega644
  • Audio
  • AVR
  • Blog
  • Computer Graphics
  • Computer Vision
  • Experiments
  • Game Boy
  • Games
  • GPU
  • Hardware
  • Linux
  • Mac OSX
  • MS Windows
  • MSDOS
  • Open Pandora
  • Raspberry Pi
  • Renderer
  • Software Releases
  • Uncategorized

Recent Posts

  • Starduino for Uzebox
  • We built an EDM BBQ
  • Starduino Turbo For Arduboy – Faster 3D Gaming Inside 28KB
  • Starduino – 3D Gaming in 28KB – Behind the Pixels
  • Starduino For Arduboy – 3D Gaming Inside 28KB

Recent Comments

  1. Akratos on Bad Duino – Bad Apple!! on Arduino
  2. Clint Beacock on Starduino For Arduboy – 3D Gaming Inside 28KB
  3. Void on Starduino Turbo For Arduboy – Faster 3D Gaming Inside 28KB
  4. millim on Starduino Turbo For Arduboy – Faster 3D Gaming Inside 28KB
  5. Roman on Starduino For Arduboy – 3D Gaming Inside 28KB

Copyright © 2025 Stéphane Hockenhull's website.

Powered by PressBook Masonry Dark

Cleantalk Pixel