Page 1 of 2 12 LastLast
Results 1 to 25 of 26

Thread: How about make SRL a plugin?

  1. #1
    Join Date
    Oct 2006
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    How about make SRL a plugin?

    I was wondering if we port SRL as a plugin, we can make our scripts a whole lot faster and more efficient. For me, it takes about 400 milliseconds every time I run a SRL script to "compile" SRL. This gets increasingly annoying as there is a lot of lag. Is it possible to compile SRL into a plugin?

  2. #2
    Join Date
    Sep 2006
    Posts
    45
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    400 Milliseconds isn't very long... and I really don't think porting it into a plugin will do any thing better. But if your right we could make SRL work for computers with Pentium 2 and 3 comp.

  3. #3
    Join Date
    Oct 2006
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Tonekray View Post
    400 Milliseconds isn't very long... and I really don't think porting it into a plugin will do any thing better. But if your right we could make SRL work for computers with Pentium 2 and 3 comp.
    Yeh, 400 millisconds isn't too long for once per script, but remember, you're constantly calling functions like MMouse, Mouse and so on which take a lot of time to interpret for SCAR. If you read the file in the plugins, it says it's good to make plugins for optimised functions. It'll make it incomparably faster to run from a plugin. Also, you wouldn't need to recompile every time you run a script or reinterpret every time you call a function. It's a good project. Also, I bet we can bundle it all into one file, which makes distribution and installation much easier.

  4. #4
    Join Date
    Feb 2006
    Location
    L.A, USA
    Posts
    1,632
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Easier to edit in .Scar.

    Plus, I can openly see and leech codez easily. (:

  5. #5
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol im with WhiteShadow

  6. #6
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    How bout you put mmouse and everything it needs into a plugin, (call it mmousep or something) and run some speed tests. If it's a lot faster than maybe it would be worth putting laggy stuff in a plugin. Until I see results like that, how it is works now is fine. SRL already has plugins for things that need to be plugins, so theres a reason everything else is .scar.

    Distribution isn't much of an issue since rar is one file.

    Also as WhiteShadow said, I dig around SRL a lot. I guess this doesn't apply to script users that don't script.

    As for speed, computers differ anyway, so it will never be perfect. But the way scripts are written (and the functions/procedures) are getting better and better.

  7. #7
    Join Date
    Nov 2006
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hm, so that's why this does incredible lag. Probally due to the mass amount of includes in the SRL file.

    How would one go about making this stuff into a plugin?

  8. #8
    Join Date
    Sep 2006
    Location
    Scripter's Heaven
    Posts
    455
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i like editting my version of SRL.... i call it LardRL (: i was wondering, what is the deal with plugins, how do they work and how do you call them in a script?

    And check out my pascal interpreter!
    <R0b0t1> No, really, I went to a bar and picked up a transvestite.

  9. #9
    Join Date
    Oct 2006
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by lardmaster View Post
    i like editting my version of SRL.... i call it LardRL (: i was wondering, what is the deal with plugins, how do they work and how do you call them in a script?
    Lol. Plugins are basically "compiled" includes, i guess. Since SCAR has to constantly interpret the source code, it's very very very slow (speaking in computer terms). If we could compile it like any other normal program or a a shared library and call it normally, it would be way way way faster (again, speaking in computer terms). I guess you can call them normally since Pascal is a simple language. In C you have to load the shared libraries and call their functions. In SCAR I think all you have to do is call.

  10. #10
    Join Date
    Feb 2006
    Location
    L.A, USA
    Posts
    1,632
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by KuJi View Post
    Hm, so that's why this does incredible lag. Probally due to the mass amount of includes in the SRL file.

    How would one go about making this stuff into a plugin?
    The only lag I know of is some random solvers.

    SRL is a huge include yes, but people mainly only use core and maybe some others, so that's cuts it down alot. The amousnt of files doesn't have anything to do with it. It compiles in msex on my comp. no problem.

    EDIT:

    I find this idea quite stupid.

  11. #11
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    writeln('SRL compiled in '+inttostr(ms)); prolly takes longer than the compiling

  12. #12
    Join Date
    Feb 2006
    Location
    L.A, USA
    Posts
    1,632
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Let's do one of them PRO/CON thingys.


    PRO
    + A little faster.

    CON
    - No longer open source
    - Hard to edit
    - Have to use a manual to find procedures
    - Weird organization for a library to be a plugin
    - Wasn't that slow anyways, I actually didn't find it slow at all.
    - I bet there are lots more.

  13. #13
    Join Date
    Oct 2006
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by WhiteShadow View Post
    The only lag I know of is some random solvers.

    SRL is a huge include yes, but people mainly only use core and maybe some others, so that's cuts it down alot. The amousnt of files doesn't have anything to do with it. It compiles in msex on my comp. no problem.

    EDIT:

    I find this idea quite stupid.

    Lol, dude, programming is about efficiency. Just because some people have like quad cores, doesn't mean we can just waste processor time because they have multiprocessors. Some of us are still stuck with a pentium 3 (not me, just an example). For those people still stuck with something lower thatn 2 GHz, we need efficiency. Hey, I'm running a Centrino 1.8 GHz with ATI Radeon x300 128 mB hypermemory. It's not too fast compared to what you guys probably have. It's a laptop, c'mon. That's why I (and probably some other people as well) are interested in making this into a plugin (to speed things up). It's an idea.

  14. #14
    Join Date
    Aug 2006
    Location
    London
    Posts
    2,021
    Mentioned
    2 Post(s)
    Quoted
    0 Post(s)

    Default

    i dont think its a good idea because it wouldnt be so open source anymore, for a faster include, its really not worth it. and i bet we would all have to learn delphi to use it. theres also a small chance one of the devs might turn rouge and put something weird in the plugin
    Join the Official SRL IRC channel. Learn how to Here.

  15. #15
    Join Date
    Nov 2006
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What if they just gave us the source of the plugin and we just needed to compile it?

    Would allow them to get rid of key loggers, would still be open source etc... and faster

  16. #16
    Join Date
    Feb 2006
    Location
    L.A, USA
    Posts
    1,632
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by solarwind View Post
    Lol, dude, programming is about efficiency. Just because some people have like quad cores, doesn't mean we can just waste processor time because they have multiprocessors. Some of us are still stuck with a pentium 3 (not me, just an example). For those people still stuck with something lower thatn 2 GHz, we need efficiency. Hey, I'm running a Centrino 1.8 GHz with ATI Radeon x300 128 mB hypermemory. It's not too fast compared to what you guys probably have. It's a laptop, c'mon. That's why I (and probably some other people as well) are interested in making this into a plugin (to speed things up). It's an idea.
    It's effiecient already. Pup's boxsolver the pictures are in plugin, it's still RLY slow. I bet it would help alot but plugin doesn't just mean "omg spped". If your computer was rly that slow. That SRL is a huge problem for you, then you should just change your computer. You wouldn't even be able to browse SRL like this probably! Actually the main reason scripts lag isn't even SRL. It's the script itself, people use big bitmaps and everything. You want to change everything into a plugin, I don't get what SCAR is anymore. :[

    I use a laptop, too btw. Maybe you should try deleting all that shit you have on your computer or defrag it or something.

  17. #17
    Join Date
    Sep 2006
    Location
    Scripter's Heaven
    Posts
    455
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    wow, lets play attack solarwind!

    And check out my pascal interpreter!
    <R0b0t1> No, really, I went to a bar and picked up a transvestite.

  18. #18
    Join Date
    Oct 2006
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by lardmaster View Post
    wow, lets play attack solarwind!
    What do you mean?

  19. #19
    Join Date
    Sep 2006
    Location
    Scripter's Heaven
    Posts
    455
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nvm, check out my awesome ms paint pic though!

    And check out my pascal interpreter!
    <R0b0t1> No, really, I went to a bar and picked up a transvestite.

  20. #20
    Join Date
    Aug 2006
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Why dont we just put srl(and other miscallaneous scar functions that help) in a dll and let ppl develop their crap in an executable and it will be much faster

  21. #21
    Join Date
    Oct 2006
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    How about keep everything as it is and just make scar compile into machine code. So it first compiles everything and then runs it as usual. That would be the wickedest option. That would be so cool. It still keeps everything as it is, but it compiles everything, eliminating almost all lag. Imagine that. And how hard could it be to compile? I mean, we have the interpreter, all we need to do is compile.

    I wish SCAR would be open source. We could blaze Jagex.

  22. #22
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    I hear Kait is working (slowly) in new version of scar. Whether he makes changes that drastic I dunno. But I'm guessing increased speed will be one of his goals (amongst other things like functionality features etc), somehow someway he'll prolly make it faster. For now, we can improve scripts.

  23. #23
    Join Date
    Jun 2006
    Posts
    366
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol lardmaster you are so random... What pict are you talkin abt btw...lol just made me laugh, how u defended your self so quick :P...

    anyway when ever I get lag in scar.. It's mostly because of my or someone else's script.. SRL hasn't been laggin me.. but my comp is pretty fast..so maybe thats why.. Oh btw 400 ms is less than a second, and that's not a lot, but from a computer's point of view.. I know but stil..........
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig (I did, so should u )

  24. #24
    Join Date
    Oct 2006
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh, how much faster it could be, and all we have to do is let SCAR compile first. That's all. Keep everything the same and just SCAR make a temporary binary.

  25. #25
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    I dunno. If you know how to do that stuff then do it to a couple functions and test em.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 34
    Last Post: 10-23-2008, 03:17 AM
  2. How do i make a plugin?
    By Infantry001 in forum Delphi/FPC Help and Tutorials
    Replies: 6
    Last Post: 04-25-2007, 08:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •