• Advertisement
Sign in to follow this  

Ruby for model, Irrlicht engine for view?

This topic is 4109 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm new to Ruby, and as a way of increasing my knowledge of Ruby I've decided to make a game using the Irrlicht 3D C++ engine. My question is, has anyone done anything like this before? I want to use Ruby for the model (player inventory, game logic) and to control the 3D engine. I know performance is an issue with Ruby, but I'm hoping that if I offload the real performance parts (the 3D stuff)to the C++ engine, I might be able to make it work. Any thoughts?

Share this post


Link to post
Share on other sites
Advertisement
Ruby has a nice C API have a look at the extending Ruby in the Ruby Book....

http://www.rubycentral.com/book/ext_ruby.html

List most languages, C bindings are natural, but C++ is a little unnatural and needs some sort of wrapper code, which generally adds overhead.

As for Ruby's performance issues, they will probably won't be an issue when Ruby 2.x is released. Until then Python clearly has the advantage here, and hence why the games industry has invested a lot of resources into Python, along with Boost.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement