Giter Site home page Giter Site logo

tasty-pastry's Introduction

tasty-pastry

A 4k demo framework for Raspberry Pi

Introduction

Tasty-pastry is a work-in-progress demo framework for the Raspberry Pi. This is a long term project, but there are some useful gems already that might be of use to others. The size-oriented linking and fast ESSL trig primitives are believed to be state of the art on Raspberry Pi.

Implemented features

  • C framework to initialise OpenGL ES
  • 4k optimised link process
  • Executable packer
  • OpenGL ES shader language fast sin and cos primitives

4k optimised link process

The link and pack process shrinks executables to a fraction of their original size.

  • Removal of debug information
  • Removal of sections unnecessary for execution
  • Removal of section table itself (courtesy sstrip)

Executable packer

Raspbian Wheezy ships with gzip, bzip2 and best of all xz. The best compression ratios were achieved using xz with the legacy LZMA format, which has a smaller header. Tasty-pastry uses a bash decompression stub to decompress, execute, delete and exit. One file is written in /tmp, and deleted on exit.

  • LZMA based packer (gzip and bzip2 also available)
  • 54 byte decompression stub (53 for gzip)

Shader acceleration

Videocore, the Raspberry Pi GPU, lacks accelerated support for a lot of natives. All trigonometry is calculated longhand. Tasty-pastry provides new trig functions that execute in half the time, but still return results to 0.1% error or less.

Credits

tasty-pastry's People

Contributors

going-digital avatar

Stargazers

Rok Krajnc avatar

Watchers

 avatar  avatar

Forkers

dividuum iot-alex

tasty-pastry's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.