Skip to content

Include SGDK's "methods". #116

@kakoeimon

Description

@kakoeimon

This is a proposal, future request.

I will right a little boring story to make it clear why I believe this project can benefit from this.

I recently imported a game I made with SGDK for the MegaDrive to NeoGeo with NGDevKit.

I ended up including several math functions from SGDK because I am too used to the fixed point it contains among other things.

Everything looked OK and I had no plans contacting you for small things like this.

But later on I realized that in intense situations I was loosing framerate and it made no sense. Upon further investigation I found out that the problem was the function “snprintf“ from stdio that I was using to display the score. So I ended up importing to my game parts from SGDK once again to be able to use the “uintToStr” and see what will happen. The result was that the game stopped loosing framerate and it became better than the MD version (yes it was loosing framerate too in this situation) and atlast everything made sense.

I believe that the same problem exists and in memory allocations. For example malloc and free I believe are quite slow too. I was unable to confirm it by the way.

So my proposal is this.
import to the project sgdk's
types, string, math and memory

I believe that in the long run, NGDevKit will benefit from this as new users will not fall in to the pits of the standard libs and SGDK users will find a familiar environment to port or to cross develop their games.

By the way I also wrote a small python script to import graphics and sounds the same way SGDK is importing them and structures similar to SGDK to handle sprites and animations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions