User314159 Posted June 23, 2011 Share Posted June 23, 2011 I am A programmer And made a server and client that both run at 30 frames per second. the server counts down (99,98,97,96 so forth ) and sends values through the internet at 30 times a second so I opened the client Put the it next to the server so I could see both values at the same time as you would expect The client had a slight delay but when the server just turned to 96 the client had already had the value 95 that shouldn't be possible the client doesn't count it just reads values and displays Did I break the laws of physics? or am I not seeing something? Link to comment Share on other sites More sharing options...
John Cuthber Posted June 23, 2011 Share Posted June 23, 2011 THE OS probably decided to refresh the outputs in the "wrong" order. Link to comment Share on other sites More sharing options...
insane_alien Posted June 23, 2011 Share Posted June 23, 2011 I'd go for your program has a bug rather than you've broken the laws of physics. Link to comment Share on other sites More sharing options...
mooeypoo Posted June 23, 2011 Share Posted June 23, 2011 I am A programmer And made a server and client that both run at 30 frames per second. the server counts down (99,98,97,96 so forth ) and sends values through the internet at 30 times a second so I opened the client Put the it next to the server so I could see both values at the same time as you would expect The client had a slight delay but when the server just turned to 96 the client had already had the value 95 that shouldn't be possible the client doesn't count it just reads values and displays Did I break the laws of physics? or am I not seeing something? There's also an issue of refresh rates of the screens. The *value* was probably transmitted in the right order while the screen momentarily displayed a delay value. In any case, there's very *VERY* little chance you broke the laws of physics. As others have said, I'd go over the software and hardware first. Link to comment Share on other sites More sharing options...
User314159 Posted June 23, 2011 Author Share Posted June 23, 2011 (edited) I added a image that rotates to check if there is any delay and there is not EDIT: I'm going to put another computer next to the one I'm using now and will run the same application Edited June 23, 2011 by User314159 Link to comment Share on other sites More sharing options...
timo Posted June 23, 2011 Share Posted June 23, 2011 (edited) Oh my god, stop that program before it creates an earth-destroying black hole!!! Edited June 23, 2011 by timo 2 Link to comment Share on other sites More sharing options...
User314159 Posted June 23, 2011 Author Share Posted June 23, 2011 The other computer gets the value ahead of time aswell Link to comment Share on other sites More sharing options...
pwagen Posted June 23, 2011 Share Posted June 23, 2011 Any chance you can supply the relevant parts of the code? Either through use of code tags here, or via something like http://pastebin.com/? Link to comment Share on other sites More sharing options...
mississippichem Posted June 23, 2011 Share Posted June 23, 2011 Sounds like Gnome trickery to me. Gnome Physics, by Cap'n Refsmmat Link to comment Share on other sites More sharing options...
mooeypoo Posted June 23, 2011 Share Posted June 23, 2011 The other computer gets the value ahead of time aswell I must ask this... you don't... SERIOUSLY.. think you're breaking the laws of physics, do you? We might want to change attitude and explain what physics means if you actually consider this option for real. ~mooey Link to comment Share on other sites More sharing options...
Mr Skeptic Posted June 24, 2011 Share Posted June 24, 2011 Probably your client that you use to display your values from the server has less lag than the other client you're using to display the values from the server. Link to comment Share on other sites More sharing options...
User314159 Posted June 24, 2011 Author Share Posted June 24, 2011 Mr skeptic I use The Server To display the value it sending Link to comment Share on other sites More sharing options...
mooeypoo Posted June 24, 2011 Share Posted June 24, 2011 Mr skeptic I use The Server To display the value it sending Let me ask you, though.. what do *you* think is happening? There seem to be quite a large array of options here. I'm curious to know how you plan to "attack" the problem. Link to comment Share on other sites More sharing options...
pwagen Posted June 26, 2011 Share Posted June 26, 2011 Are you sending the value from the server before you are displaying it on the server's screen? Link to comment Share on other sites More sharing options...
User314159 Posted June 27, 2011 Author Share Posted June 27, 2011 The server sends the value 30 times a second and updates the server's display 30 times a second Link to comment Share on other sites More sharing options...
pwagen Posted June 27, 2011 Share Posted June 27, 2011 Yes, but do you output the values to the server before or after the server sends the value? In other words, which is more accurate for the server version? A: getValue() displayValue() sendValue() B: getValue() sendValue() displayValue() 1 Link to comment Share on other sites More sharing options...
Jacques Posted June 28, 2011 Share Posted June 28, 2011 I am A programmer And made a server and client that both run at 30 frames per second. the server counts down (99,98,97,96 so forth ) and sends values through the internet at 30 times a second so I opened the client Put the it next to the server so I could see both values at the same time as you would expect The client had a slight delay but when the server just turned to 96 the client had already had the value 95 that shouldn't be possible the client doesn't count it just reads values and displays Did I break the laws of physics? or am I not seeing something? 30 frames a second How can you read any values ? At 30 f/s you should only see a blur on the screen. Does the programm loop back to 100 after conting down to 0 ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now