GithubHelp home page GithubHelp logo

prophets-of-profit / d2d Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 3.0 911 KB

A D language graphics library built on DerelictSDL2.

Home Page: https://prophets-of-profit.github.io/d2d/

License: MIT License

D 100.00%
2d 2d-game-framework aliens d2d game-dev game-development gamedev sdl sdl2

d2d's People

Contributors

eliagorokhovsky avatar kadintucker avatar saurabhtotey avatar sethsberman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

d2d's Issues

Incorrect FPS limiting in Display

In d2d.Display, the FPS isn't limited correctly. The FPS is usually lower than what the FPS cap should cap it at. For example, if the FPS cap is 60 FPS, the actual FPS will be around 45.

Window naming issue

It will be necessary, or at least make everything easier, to have a Window class that is a translation of SDL_Window. As we have it, our main overall class is called Window. I propose that this get changed to display.

Improve performance of ShapeDrawer methods

Currently, ShapeDrawer methods of drawing polygons, bezier curves, and the base methods of drawing lines run very slowly and consume a lot of gpu performance.
One way to fix this may be to cache the shapes drawn somehow-I would suggest as surfaces-and instead of having drawPoint be the only functionality that needs to be defined in ShapeDrawers have a draw surface defined as well. For Surfaces this is obviously blit. For the Renderer, it can create textures and cache them on its own, perhaps.
Regardless, this is an issue which should be addressed at some point.

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.