HellRok / Taylor

A simple game engine built using raylib and mruby
https://www.taylormadetech.dev
MIT License
97 stars 6 forks source link

Why MRuby instead of CRuby? #21

Closed Nathan-MV closed 11 months ago

Nathan-MV commented 11 months ago

CRuby is generally faster but causes more overhead than MRuby, so was it decided to use MRuby instead?

HellRok commented 11 months ago

The main reason I chose to use MRuby is because I wanted something that could be compiled into a single executable file for ease of distribution. I also knew that MRuby was more portable than CRuby (with Android and WASM being my primary concerns)

Another reason is because you can keep your source code safe while distributing your game by using mrbc which to the best of my knowledge is not able to be decompiled (at least in any meaningful way).

I've not built a native extension based gem before but it feels like Taylor could be refactored to make it a possibility, but I don't have any interest in doing that myself.