Results 1 to 10 of 20

Thread: preGSC

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    24
    Thanks
    4
    Thanked 16 Times in 10 Posts
    Okay so now I have extended those preprocessor directives to be more useful, and also added some more things. Changelog:
    [+] Preprocessor directives
    [+] Inline functions
    [+] Foreach
    [+] Filled array and map definitions
    [+] Default parameters
    [+] Apostrophe strings
    [+] Importing
    [-] Handling more extreme conditions

    I hope it'll be useful for someone. Download: preGSC
    Please report every ideas and bugs.

    Also kung foo I have benchmarked many things, reference variables are really not useful when using as a constant (so not modifying the data structure itself), also sometimes helper variables are faster (I see no logic behind it, asked BraXi and Ninja and noone knows why, but these were the test results), so I have made inline functions with which we can save much copying (details on ModDB page - no real function call, it will be inserted in the code while compiling with preGSC); I have run 100000 times a removeFromArray function with normal function, and with inline. Normal was 4000ms, inline was 500ms... so thanks for the benchmarking idea.

  2. The Following 2 Users Say Thank You to iCore For This Useful Post:

    Jared (17th November 2013),kung foo man (16th November 2013)

Tags for this Thread

Posting Permissions

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