You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
GreenSnakeLinux commentedon Jun 10, 2026
Thanks for you analyze, I had the same issue, your discovery should be in the new discussion tab !
For the one that do not want to import all the string.c from SGDK https://github.com/Stephane-D/SGDK/blob/master/src/string.c
Here is a minimal function that can replace snprintf: