+ Reply to Thread
Results 1 to 8 of 8

Thread: Put a note next to delta

  1. #1
    hurrr physics Tolyzor's Avatar
    Join Date
    Aug 2008
    Location
    England
    Posts
    1,019

    Default Put a note next to delta

    A note needs to be added to the delta chip because as it stands, people think it is something it's not;

    Delta does NOT measure change/s

    Delta measures change/45ms, meaning that if you want to find the acceleration of your contraption in M/s^2 the correct equation is Acceleration = ($Speed) * 22.222...

    An easy way to prove what i am saying is to put a speedo and a gps on a plate, when the plate is moving up or down the delta of the gps' Z output is 22.222... times less than the Z velocity given by the speedo.

  2. #2
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default Re: Put a note next to delta

    To be more correct, delta measures change/frame, it only measures the difference between the current and previous value of the variable. Meaning, it is dependent on what framerate you have.

    We had experimental implementations of delta/second, but we discarded them because Lua is dependent on the framerate of garrysmod, which is dependent on lots of things. Meaning that a slightly varying framerate causes different lengths for each frame, not a problem in itself, but the physics is probably not exactly dependent on frametime. Additionally, it needs to have an exact interval which then of course cannot be guaranteed, especially since static values does not cause additional updates.

    To sum it up, delta/second is possible, but it becomes (quite alot) less precise. Which we can live with, but seeing that the current delta provides virtually the exact same thing, but with better precision. The only difference is that whatever factor you have, also needs to compensate for the update interval.

    So the decision was made not to make it available, because most of the people would probably always use that instead without knowing the consequenses. You can implement it yourself as an expression if you really want.

  3. #3
    Wire Sofaking Fizyk's Avatar
    Join Date
    Jun 2008
    Location
    Łomianki, Poland
    Posts
    740
    Blog Entries
    1

    Default Re: Put a note next to delta

    There is a delta/second gate and it's called derivative (actually derivative is change in the value divided by time that has passed, but when you divide by time in seconds, what you get is exactly change per second).

    My programs: BIOS - Alcyone - Calculator - Notepad - Movie Player
    My tutorials: applyTorque - Quaternions - PID controllers
    Some other things I made: FT Chip - RK4 Solar System

  4. #4
    That furred thing Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,565

    Default Re: Put a note next to delta

    Also there's multiply gate :cyborgmatt:
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5

  5. #5
    Wire Tutor chinoto's Avatar
    Join Date
    Apr 2008
    Location
    Brooklyn Park, MN. Lost my thumbdrive yet again...
    Posts
    1,983

    Default Re: Put a note next to delta

    I tried using derivative to get the output of Life Support entities.
    Edit: Forgot to say it didn't work.
    Last edited by chinoto; 01-08-2009 at 10:44 AM.
    (\__/) Expression 2 Resources: E2 Beginner's Guide | E2 Formatting Guide | E2 Function Reference | E2 Examples | Me
    (='.'=) PM me code and I'll send it back optimized if possible. (I find it fun dammit!)
    (")_(") Drunkie referring to an E2: "It's obvious that Chinoto made this, his coding style is all over it."

  6. #6
    Official Bastard of Wire Jat Goodwin's Avatar
    Join Date
    Aug 2008
    Location
    Colorado Springs
    Posts
    2,771

    Default Re: Put a note next to delta

    So the delta per frame... if my server is running at 500 fps, will that mean it updates every 500fps?
    or does it update on the client's fps.
    Ö͎̗̫̙̝̹͓̤̙́ͣͤ̈́̋̽̋͜f̺̦̠̻̜̼̮͓̖́̓̄̿̓̌̓̍̔f̵̳̻̜̹̤̱̊͒ͤ͌ ̅ͭͮ̾͟i̗͖̎͗̇ͯ̈̀̌̽c̯̮̉ͮ̾͟͡i̵̺̻̠̘̤̫͕ͯͭ̅͊ͤͦͧa̷͇̖̲ͥ͗ͪ̎ͤ ̽̾ͫl̶̈́̉̉͂̿̎ͯͥ̐҉̗͙̦̻̪ ̪̻͕̗̝͈̘͓ͬ̋̕͟B͚̲̍͢ā̸̪͔͖̟ͫͨ͜͝s͈͔͔͖͇͍̗͛ͯ̑̂͟t̮̤̬̩̅ͧ̎͑͗ ̃̕͟a̸̧̻̖̘̞̪̲͈͕̲͊ͭͪ͆̉r̯̩̮̬̥̤̗̙̃͌̑͊͢͞ď̠̦̲̥͢͡ ̵̶̢̱̲̺͈̘̳͕ͤͅo̯̞̙̦͖̪̽ͩ͊ͅf̵̦͈̣͙̰̎͋̿́ͅ ̛͕̹̫̰̱̾̓ͪ̌̽̊͘͡W̨̬̲̤̖̽̿͛ͨ͛̃̎͐̏i̛̼̳̝̺̝̭͙͋̑͑ͬ͠ṙ̼͔̪ͯͨͭ ̕e̸̗͕̰̒̃ͩͬ̾͆́ͅͅ

    I Require More Minions! Join us on the IRC !
    List of Reasons to idle on the IRC: Wire QDB

  7. #7
    Wire Sofaking Azrael's Avatar
    Join Date
    Aug 2007
    Posts
    1,946

    Default Re: Put a note next to delta

    The delta chip updates every time the value changes, Hence, the delta chip is not d/dt as you so wrongly presumed, but simply the the current value minus the previous value. The derivative gate is what you're looking for.

    I wrote an epic post explaining this but it seemed it didn't post here so you can have this one instead.

  8. #8
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default Re: Put a note next to delta

    Quote Originally Posted by Jat Goodwin View Post
    So the delta per frame... if my server is running at 500 fps, will that mean it updates every 500fps?
    or does it update on the client's fps.
    Wire is still limited to 55 FPS or something, I don't remember exactly.

+ Reply to Thread

Similar Threads

  1. A note on inclusion of addons into official wire.
    By Anticept in forum Wiremod Addons & Coding
    Replies: 0
    Last Post: 08-18-2008, 07:13 AM
  2. Delta
    By Craggles in forum Installation and Malfunctions Support
    Replies: 5
    Last Post: 12-20-2007, 05:34 PM
  3. Delta help
    By shaterd in forum Installation and Malfunctions Support
    Replies: 7
    Last Post: 11-07-2007, 01:15 PM
  4. Delta
    By Shandolum in forum Gate Nostalgia (Old School Wiring) Discussion & Help
    Replies: 21
    Last Post: 09-25-2007, 02:19 PM
  5. Delta
    By Qjet in forum Ideas & Suggestions
    Replies: 9
    Last Post: 04-02-2007, 03:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots