[Rubix] More progress

After spending a long time googling and fighting with encoding, I’ve finally managed to show Thai text in Rubix :D   This involve converting  a string from Ruby to wstring, using UTF-8 encoding, and then convert it back to string to show the text on screen. Anyway, it finally works and now I can continue on other parts of the engine! woohoo!!

Also, I’ve tried the drawing sprite test, and it turn out that drawing 5,000 static sprites seems to be ok, but if those sprites are moving and rotating then the performance is lower to 3,000 sprites before the FPS started to drop. Actually it was 2,000 , but I’ve rewritten the Math.sin and Math.cos method to do it in C++ instead, and that really help with the speed.

I guess this mean I have to write a collision detection in C++ and let ruby calls it as well, or else I won’t get anything higher than 30FPS for 1,000 sprites.

0 Responses to “[Rubix] More progress”


  • No Comments

Leave a Reply