Skip to content
/ 64k-starter Public template

Template for making smallish demos in Rust

License

Notifications You must be signed in to change notification settings

Kwarf/64k-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

64k-starter

This is a template repository that can be used as a starting point when making (somewhat) small demoscene productions in Rust.

Out of the box it will:

  • Minify shader sources as a build step using Shader_Minifier
  • Create a fullscreen 1920x1080 window
  • Load a fragment shader (the default example from Shadertoy)
  • Load and play a WaveSabre song using wavesabre-rs
  • Update the shader uniform (iTime) each frame
  • Render until the song ends

Size

A release build (cargo build --release) of this project as is will result in a binary size of 28 672 bytes.

Packing it with UPX can then reduce it down to 16 384 bytes.

Without music

If you have a demo without music, or if you bring your own software synth, the size without music may be of interest.

5 120 bytes as is, but with some more linker tweaks it can be brought down further to 4 208 bytes, which UPX cannot improve.

Thanks to

About

Template for making smallish demos in Rust

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published