greptilian logo

IRC log for #friendlyjava, 2019-02-08

##friendlyjava on freenode

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
03:36 deavmi joined ##friendlyjava
11:19 deavmi joined ##friendlyjava
15:08 nanoz joined ##friendlyjava
17:02 aditsu joined ##friendlyjava
17:10 aditsu mr_lou: huh? Thread.sleep?! dude, use a timer
17:11 aditsu about sockets and lag.. maybe use UDP?
17:55 mr_lou Not sure I can do that with Java 1.3 :-)
17:58 aditsu (◔_◔)
18:09 mr_lou Can I?
18:09 mr_lou Seems so.
18:10 mr_lou I'm sending one int at a time.
18:10 mr_lou WiFi gamepad.
18:10 mr_lou UDP would be faster at this you think?
18:12 aditsu most likely, but it may lose packets from time to time
18:32 mr_lou Hmm....
18:32 mr_lou That's not good.
18:32 mr_lou But I will experiment.
18:32 mr_lou Just geeky experiments as usual. Made my old J2ME phone into a gamepad for my Blu-ray game.
18:32 mr_lou Works fine, but has lag.
18:33 mr_lou It'll all be a one way stream. From the phone to the Blu-ray player.
18:33 mr_lou I can rewrite so it becomes only 1 byte per action.
18:34 aditsu you can also look into tcp_nodelay and related techniques
18:49 mr_lou Thanks
18:49 mr_lou But you think UDP is fastest?
18:50 aditsu generally, yes, or raw sockets, but udp is easier to work with
18:55 mr_lou Thanks. I knew it was you I had to ask. ;-)
19:56 mr_lou aditsu, And btw... I don't use Thread.sleep for timing issues. I only use them to free CPU for other threads. I've found that if I don't do that, everything can actually run slower.
19:56 mr_lou Maybe that's just for J2ME... dunno.

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

##friendlyjava on freenode