Giter Site home page Giter Site logo

sdl2_raw-p6's Issues

factor out framerate info from examples

I'm not entirely sure if it should go into SDL2::Raw at all, but it'd surely be better to have a little module than to have it spread out over all the examples.

Currently in the "main loop" of the examples there's a native num array where frame times (taken using nqp::time_n, though surely a higher-level function ought to be okay, too, nowadays) are pushed, then at the end they are sorted and a few percentiles are printed out. However, if there's not enough values, sometimes it'll output Any or Nil or so.

It'd be nice to analyze it more thoroughly, like giving information about framerate stability (for example, how often do GC pauses increase frame times?)

Lacks a license

As far as I can tell, this module does not have a license attached to it. It would be nice to get a license for this module :) (e.g.: Artistic License v2.0, which Perl6 uses)

Build overview of missing functions, constants, and structs

It'd be cool to do this in an automated way. Either pull functions from the sdl wiki, or pull it from sdl's hg repository (both on libsdl.net)

http://wiki.libsdl.org/CategoryAPI — this has all the symbols in it, i.e. functions, constants, structs. Would be necessary to differentiate them by type, but it could be a good starting point.
http://wiki.libsdl.org/APIByCategory — this is the page i use most often to figure stuff out, for example when i want to build an example or program, rather than just to add to the bindings
https://hg.libsdl.org/SDL/file/default — this lets you browse the files of SDL's mercurial ("hg") repo

Lack of function

Please add sub SDL_DestroyWindow(SDL_Window $win) is native($lib) is export {*}
and return value to existing functions like SDL_Init etc.

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.