Pros and Cons of Implementing a Scripting Language

  • Felix
    17th Oct 2010 Member 0 Permalink
    dikzak:
    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.

    I am having a hard time seeing how they could reach 600 fps, what game(s) are you talking about? Interpreted languages are waaaaay slower than C.
  • Finalflash50
    17th Oct 2010 Banned 0 Permalink
    This post is hidden because the user is banned
  • plypencil
    17th Oct 2010 Member 0 Permalink
    I said logical fps. It does 100 frames then draws, 5 times a second.

    Drawing takes a lot lot lot longer than logic.

    I will be uploading source code when I get home.

    People are talking about reading scripts actively from file, my method sets byte values in the ram by scripts which is then processed by the application.
  • MiXih
    17th Oct 2010 Member 0 Permalink
    plypencil
    so you mean checking physics every frame but draw every eg. 22 frames?
  • plypencil
    17th Oct 2010 Member 0 Permalink
    Yes that is exactly what I mean, the times I provided was how long it took to run the physics 100 times.

    Edit: I would also like to add that I am not editing the powder toy, this little test is being done through a program i've created
  • Felix
    17th Oct 2010 Member 0 Permalink
    plypencil:
    Yes that is exactly what I mean, the times I provided was how long it took to run the physics 100 times.

    The source code then?
  • plypencil
    17th Oct 2010 Member 0 Permalink
    As I said, when I get home
  • zc00gii
    17th Oct 2010 Banned 0 Permalink
    This post is hidden because the user is banned
  • bbqroast
    17th Oct 2010 Member 0 Permalink
    On my SQL post
    I'm still not sure how greater idea this is- but it would be really cool.
    I'd like to know what Simon thinks of it.
    NB: Its on page 5

    plypencil
    Writing are own language will keep processing time to a minimum- Also will this be on-the-spot compilation or will it precompile (precompiling could possibly keep Powder running fast.
  • Cr15py
    17th Oct 2010 Member 0 Permalink
    We could technically load a script, break it down, turn it into a sort of simple bytecode instruction set, and execute it based on that. It would be faster than most other methods. Of course it would add a few extra steps to the process.
Locked by jacob1: necro