Pros and Cons of Implementing a Scripting Language

  • devast8a
    17th Oct 2010 Former Staff 0 Permalink
    plypencil
    There will be.
    Especially with a scripting language.

    The major question is, is it worth the performance hit so we can be a bit more dynamic?
  • plypencil
    17th Oct 2010 Member 0 Permalink
    That is what I am finding out
  • JoJoBond
    17th Oct 2010 Member 0 Permalink
    plypencil
    Why make something yourself when there is LUA? Also: Scripts will make the particle-logic even slower. Best way to get more flexibility is to turn TPT into a framework with a core-plugin. So people can simply download plugins that add elements and such to TPT.
  • plypencil
    17th Oct 2010 Member 0 Permalink
    Because LUA has to be learned, the script ive made is pretty simple dont you agree?
  • JoJoBond
    17th Oct 2010 Member 0 Permalink
    plypencil
    LUA is 'kind of save'.
    If you want to create a script-language, you have to think about a lot more then how the syntax looks.
    Think about interpreter speed and error handling, etc.
  • plypencil
    17th Oct 2010 Member 0 Permalink
    I already use my scripting language in my games I produce, it works fine for me.

    I am simply creating this application to prove that there is a very marginal difference in scripting speed. If done right.
  • Felix
    17th Oct 2010 Member 0 Permalink
    plypencil:
    I am simply creating this application to prove that there is a very marginal difference in scripting speed. If done right.

    Haha... You must be kidding me ....
  • plypencil
    17th Oct 2010 Member 0 Permalink
    Particles which have basic gravity, dan ball style liquid movement their own colour in a universe 200x200 pixels big.

    Processes 100 logic ticks then draws, the times below are only for logic, not the drawing. Simulation is with 4000 particles.

    83ms - Normal Logic
    92ms - Scripted Logic



    (My simulation was operating at 500 logic fps)
  • devast8a
    17th Oct 2010 Former Staff 0 Permalink
    plypencil:
    Because LUA has to be learned

    And your scripting language doesn't?

    plypencil:
    83ms - Normal Logic
    92ms - Scripted Logic

    Could you release your source code if you haven't already?
  • doxin
    17th Oct 2010 Former Staff 0 Permalink
    the performance hit should be minimal, i know of powdergames with interpreted scripting that reach ~600fps. the problem is the way tpt is structured atm makes this very hard to do, maybe in the distant future.
Locked by jacob1: necro