Skip to content

Kwarf/64k-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 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 27 136 bytes.

Packing it with UPX can then reduce it down to 15 360 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.

3 584 bytes as is, but with some more linker tweaks it can be brought down further to 2 192 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