Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Slow data transfer using Multisync, or is it?

Author
Message
Ben_UK78
16
Years of Service
User Offline
Joined: 10th Jul 2010
Location:
Posted: 4th Nov 2011 18:53
Hi All,

I am using multisync to transfer data (at the moment through 127.0.0.1, but over the net is the end product).

It just seems to shift data slowly. I fill the 2048 bytes, fitting in about 36 records, then send it. The server then replies with each record position received and the client transmits the next batch.

Doing it this way I transfer about 100 records a second, so about 3 blocks of data back and forth.

The frame rate of the program is around 650 frames a second using SYNC, so it's not like the program is struggling.

My question is - Is a data send and receive every 300ms on the same machine normal for this?

Any advice (theory) on whether/how I could speed it up?

Thanks for any advice.
The Wilderbeast
20
Years of Service
User Offline
Joined: 14th Nov 2005
Location: UK
Posted: 5th Nov 2011 00:59
I've never used Multisync, but it depends how your config options (if any) are set up. It's usually not very efficient to send packets out as and when requested. Instead it usually builds up a buffer of packets and then sends them all at once. Flushing this buffer manually or turning the option off altogether might solve this. But I don't know how low level Multisync lets you go, it may be that you can't do this

Also, are you using TCP or UDP?


10% TGC Discount!
Ben_UK78
16
Years of Service
User Offline
Joined: 10th Jul 2010
Location:
Posted: 5th Nov 2011 10:50
It's using TCP.

I can't see any options to change. It's not going to kill the project since for second by second comms it's fine, but it can dump a large amount of data at start if the databases are not sync'd so I was looking for a means of reducing that time.

Cheers.
Agent
21
Years of Service
User Offline
Joined: 7th Sep 2004
Location: Sydney, Australia
Posted: 6th Nov 2011 01:54
I've been using MultiSync for a long time. It uses the TCP/IP protocol, and as far as I can tell it just passes on commands to the system at a level equal to program execution (the actual sends and receives happen at a lower level, below your program). For this reason, I don't think there's any way to improve the speed beyond optimising the data within each packet.

Login to post a reply

Server time is: 2026-07-10 18:21:18
Your offset time is: 2026-07-10 18:21:18