Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sun Jan 19, 2020 2:43 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: IPCsockets now have long latency under Cocoa unless polled
PostPosted: Tue Jul 31, 2012 9:32 am 
Offline

Joined: Mon Apr 02, 2007 5:51 pm
Posts: 420
Location: Cosalient EHR in Washington
If you use IPCsockets and are migrating to Cocoa, you may wish to check the latency of your inter-app communications.
Although the LR does mention polling IPCsockets to improve latency, this was not that much of an issue under Carbon. The framework polled IPCsockets pretty frequently.

Under the current cocoa framework, IPSsockets latency is much larger. Noticeable delays (despite use of .flush on the sending socket) up to several seconds are now seen under Cocoa.

To work around the new, long latency in cocoa, set up a timer to periodically poll your IPCsockets. This does use a bit of CPU. So, you may need to balance the polling frequency to meet your actual requirements.

_________________
RS 2012r1.1x OSX 10.8.x Win7 XP; MBP17 w OWC SSD


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group