1. Post #41
    KatNotDinner's Avatar
    June 2011
    792 Posts
    Guys, not being offensive, STOP arguing about some 32 bytes of data and please point out why and where my script is inefficent.

  2. Post #42
    Gold Member
    Loures's Avatar
    February 2009
    2,138 Posts
    They already pointed out why your code is inefficient.
    Reply With Quote Edit / Delete Reply Windows 7 Italy Show Events Agree Agree x 4Zing Zing x 2 (list)

  3. Post #43
    MadDog986's Avatar
    March 2008
    304 Posts
    You guys to seem be assuming umsg is faster, so ill just leave this here for you.... http://facepunch.com/threads/1181378...1#post35809824
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Agree Agree x 1Winner Winner x 1Friendly Friendly x 1 (list)

  4. Post #44
    KatNotDinner's Avatar
    June 2011
    792 Posts
    Can they point the block of code which is inefficent again cause I kinda lost this part of the thread due to like 3 people complaining over someone sending 32 bytes of data every second (I thought it was me but I'm not doing so). It would be good if the people that find my code inefficent suggest an efficent solution (like Divran did).
    Also I updated the server side code so now net messages are the default option. I have left the 3rd argument for all the umsg lovers.

  5. Post #45
    Gold Member
    Divran's Avatar
    April 2008
    2,624 Posts
    Having an option to use either umsg or the net library makes it less efficient (although not a lot). And there's really no reason to have this option. Ignore the haters and choose whichever one you like more. :)
    Reply With Quote Edit / Delete Reply Linux Sweden Show Events Agree Agree x 1 (list)

  6. Post #46
    MadDog986's Avatar
    March 2008
    304 Posts
    Suggestion: Add a check to not send the data again if it hasn't changed. And remove umsg.

  7. Post #47
    KatNotDinner's Avatar
    June 2011
    792 Posts
    Thanks for the feedback guys. I'm thinking of making a system that checks if the client is missing any data but I think it won't be efficent. My idea is to make it so that when you use GetNWBlah and the client is missing this nwvar it sends a request to the server.
    Also I will remove umsg right now, since garry himself said in the thread I created that the net library is faster.

    Edited:

    Great news. Google are being dicks and I used google account to login to pastebin. Now for some reason it doesn't let me login and wants me to create a new account...

    Edited:

    Ok, managed to log in. Updated server-side code.

  8. Post #48
    KatNotDinner's Avatar
    June 2011
    792 Posts
    Added Divran and MadDog to the credits list. You deserve it guys.

    Sorry for double post, I expected something else to happen.