Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

255 Excellent


About tipforeveryone

  • Rank
    Advanced Member
  • Birthday 04/11/1989

Profile Information

  • Gender
  • Location
    Hanoi, Vietnam
  • Interests
    3D Game making, Drawing, Playing games

Recent Profile Visitors

8,784 profile views

Single Status Update

See all updates by tipforeveryone

  1. Is there any simple explaination why using C++ to make game in Leadwerks can help performance better than lua? (Explain like I am five) :D

    1. Show previous comments  2 more
    2. JMK


      Your bottleneck is likely to be the graphics on the CPU or the GPU, in which case the language your game code is written in doesn't make a big difference. However, Lua involves GC pauses while C++ does not, and C++ runs much faster overall.

      In Turbo your game logic has its own thread, which makes it okay to use Lua with VR even, and even GC pauses won't slow down the renderer.

    3. Slastraf



      Every C instruction corresponds to a very few assembler instructions. You are essentially writing higher level machine code, so you have control over almost everything the processor does. Many other compiled languages, such as C++, have a lot of simple looking instructions that can turn into much more code than you think it does (virtual functions, copy constructors, etc..) And interpreted languages like Java or Ruby have another layer of instructions that you never see - the Virtual Machine or Interpreter.


    4. tipforeveryone


      Thank you guys, I understood
      I am learning C++ hard :)

  • Create New...